diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2016-09-24 10:54:11 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2016-09-24 10:55:07 +0100 |
commit | 4d009207c28a2ab86d82b4763bb05c4375b0f04a (patch) | |
tree | 5b42cc818f51c06689534aaaa042b7b0cbd60941 /dev-vcs/git-annex/files | |
parent | net-p2p/syncthing: remove old (diff) | |
download | gentoo-4d009207c28a2ab86d82b4763bb05c4375b0f04a.tar.gz gentoo-4d009207c28a2ab86d82b4763bb05c4375b0f04a.tar.bz2 gentoo-4d009207c28a2ab86d82b4763bb05c4375b0f04a.zip |
dev-vcs/git-annex: bump up to 6.20160923, bug #591831
Reported-by: Jonas Stein
Package-Manager: portage-2.3.1
Diffstat (limited to 'dev-vcs/git-annex/files')
-rw-r--r-- | dev-vcs/git-annex/files/git-annex.bash | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/dev-vcs/git-annex/files/git-annex.bash b/dev-vcs/git-annex/files/git-annex.bash new file mode 100644 index 000000000000..309b221f0157 --- /dev/null +++ b/dev-vcs/git-annex/files/git-annex.bash @@ -0,0 +1,19 @@ +_git_annex() +{ + local cmdline + local IFS=$' +' + CMDLINE=(--bash-completion-index $COMP_CWORD) + + if [[ "${COMP_WORDS[@]:0:2}" == "git annex" ]]; then + unset COMP_WORDS[0] + COMP_WORDS[1]="git-annex" + fi + for arg in ${COMP_WORDS[@]}; do + CMDLINE=(${CMDLINE[@]} --bash-completion-word $arg) + done + + COMPREPLY=( $(/usr/bin/git-annex "${CMDLINE[@]}") ) +} + +complete -o filenames -F _git_annex git-annex |