From 002882684ba3fb5b4d191794888d139f6b89f64d Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 18 Apr 2014 01:40:19 +0200 Subject: reencryption: add to completion files --- src/completion/pass.bash-completion | 2 +- src/completion/pass.fish-completion | 2 ++ src/completion/pass.zsh-completion | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/completion/pass.bash-completion b/src/completion/pass.bash-completion index 69a044d..d04125b 100644 --- a/src/completion/pass.bash-completion +++ b/src/completion/pass.bash-completion @@ -85,7 +85,7 @@ _pass() _pass_complete_entries ;; cp|copy|mv|rename) - COMPREPLY+=($(compgen -W "-f --force" -- ${cur})) + COMPREPLY+=($(compgen -W "-e --reencrypt -f --force" -- ${cur})) _pass_complete_entries ;; rm|remove|delete) diff --git a/src/completion/pass.fish-completion b/src/completion/pass.fish-completion index b0c44ef..aa09288 100644 --- a/src/completion/pass.fish-completion +++ b/src/completion/pass.fish-completion @@ -83,10 +83,12 @@ complete -c $PROG -f -A -n '__fish_pass_uses_command generate' -a "(__fish_pass_ complete -c $PROG -f -A -n '__fish_pass_needs_command' -a mv -d 'Command: rename existing password' complete -c $PROG -f -A -n '__fish_pass_uses_command mv' -s f -l force -d 'Force rename' +complete -c $PROG -f -A -n '__fish_pass_uses_command mv' -s e -l reencrypt -d 'Reencrypt files if new location has different gpg-id' complete -c $PROG -f -A -n '__fish_pass_uses_command mv' -a "(__fish_pass_print_entries_and_dirs)" complete -c $PROG -f -A -n '__fish_pass_needs_command' -a cp -d 'Command: copy existing password' complete -c $PROG -f -A -n '__fish_pass_uses_command cp' -s f -l force -d 'Force copy' +complete -c $PROG -f -A -n '__fish_pass_uses_command cp' -s e -l reencrypt -d 'Reencrypt files if new location has different gpg-id' complete -c $PROG -f -A -n '__fish_pass_uses_command cp' -a "(__fish_pass_print_entries_and_dirs)" complete -c $PROG -f -A -n '__fish_pass_needs_command' -a rm -d 'Command: remove existing password' diff --git a/src/completion/pass.zsh-completion b/src/completion/pass.zsh-completion index 55d9bb5..cb78115 100644 --- a/src/completion/pass.zsh-completion +++ b/src/completion/pass.zsh-completion @@ -52,6 +52,8 @@ _pass () { _arguments : \ "-f[force rename]" \ "--force[force rename]" \ + "-e[reencrypt to new gpg-id]" \ + "--reencrypt[reencrypt to new gpg-id]" _pass_complete_entries_with_subdirs ;; rm) -- cgit v1.2.3