Skip to content
Snippets Groups Projects
Commit 00288268 authored by Jason A. Donenfeld's avatar Jason A. Donenfeld
Browse files

reencryption: add to completion files

parent 7a7f7dcc
No related branches found
No related tags found
No related merge requests found
...@@ -85,7 +85,7 @@ _pass() ...@@ -85,7 +85,7 @@ _pass()
_pass_complete_entries _pass_complete_entries
;; ;;
cp|copy|mv|rename) cp|copy|mv|rename)
COMPREPLY+=($(compgen -W "-f --force" -- ${cur})) COMPREPLY+=($(compgen -W "-e --reencrypt -f --force" -- ${cur}))
_pass_complete_entries _pass_complete_entries
;; ;;
rm|remove|delete) rm|remove|delete)
......
...@@ -83,10 +83,12 @@ complete -c $PROG -f -A -n '__fish_pass_uses_command generate' -a "(__fish_pass_ ...@@ -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_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 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_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_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 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_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' complete -c $PROG -f -A -n '__fish_pass_needs_command' -a rm -d 'Command: remove existing password'
......
...@@ -52,6 +52,8 @@ _pass () { ...@@ -52,6 +52,8 @@ _pass () {
_arguments : \ _arguments : \
"-f[force rename]" \ "-f[force rename]" \
"--force[force rename]" \ "--force[force rename]" \
"-e[reencrypt to new gpg-id]" \
"--reencrypt[reencrypt to new gpg-id]"
_pass_complete_entries_with_subdirs _pass_complete_entries_with_subdirs
;; ;;
rm) rm)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment