Skip to content

Commit

Permalink
autocomplete updates
Browse files Browse the repository at this point in the history
  • Loading branch information
aviau committed Jul 17, 2017
1 parent baf8c8f commit ac3f11e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions completion/gopass.bash-completion
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ _gopass()
{
COMPREPLY=()
local cur="${COMP_WORDS[COMP_CWORD]}"
local commands="init ls find grep show insert generate edit rm mv cp connect git help version"
local commands="init ls find grep show insert generate edit rm mv cp git help version"
if [[ $COMP_CWORD -gt 1 ]]; then
local lastarg="${COMP_WORDS[$COMP_CWORD-1]}"
COMPREPLY+=($(compgen -W "-h --help" -- ${cur}))
Expand All @@ -79,27 +79,26 @@ _gopass()
_gopass_complete_entries
;;
show|-*)
COMPREPLY+=($(compgen -W "-c --clip" -- ${cur}))
_gopass_complete_entries 1
;;
insert)
COMPREPLY+=($(compgen -W "-m --multiline" -- ${cur}))
COMPREPLY+=($(compgen -W "-m --multiline -f --force" -- ${cur}))
_gopass_complete_entries
;;
generate)
COMPREPLY+=($(compgen -W "-n --no-symbols" -- ${cur}))
_gopass_complete_entries
;;
cp|mv)
#COMPREPLY+=($(compgen -W "-f --force" -- ${cur}))
COMPREPLY+=($(compgen -W "-f --force" -- ${cur}))
_gopass_complete_entries
;;
rm)
COMPREPLY+=($(compgen -W "-r --recursive" -- ${cur}))
COMPREPLY+=($(compgen -W "-r --recursive -f --force" -- ${cur}))
_gopass_complete_entries
;;
git)
COMPREPLY+=($(compgen -W "init push pull config log reflog rebase" -- ${cur}))
COMPREPLY+=($(compgen -W "init push pull config log reflog rebase status" -- ${cur}))
;;
esac
else
Expand Down

0 comments on commit ac3f11e

Please sign in to comment.