m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/completion/pass.zsh-completion
diff options
context:
space:
mode:
Diffstat (limited to 'src/completion/pass.zsh-completion')
-rw-r--r--src/completion/pass.zsh-completion9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/completion/pass.zsh-completion b/src/completion/pass.zsh-completion
index 0bb14de..7590322 100644
--- a/src/completion/pass.zsh-completion
+++ b/src/completion/pass.zsh-completion
@@ -1,12 +1,15 @@
#compdef pass
+#autoload
# Copyright (C) 2012:
# Johan Venant <jvenant@invicem.pro>
# Brian Mattern <rephorm@rephorm.com>
# Jason A. Donenfeld <Jason@zx2c4.com>.
+# Santiago Borrazás <sanbor@gmail.com>
# All Rights Reserved.
# This file is licensed under the GPLv2+. Please see COPYING for more information.
+
_pass () {
local cmd
if (( CURRENT > 2)); then
@@ -20,8 +23,10 @@ _pass () {
case "${cmd}" in
init)
_arguments : \
- "-r[re-encrypt existing passwords]" \
- "--reencrypt[re-encrypt existing passwords]"
+ "-e[re-encrypt existing passwords]" \
+ "--reencrypt[re-encrypt existing passwords]" \
+ "-p[gpg-id will only be applied to this subfolder]" \
+ "--path[gpg-id will only be applied to this subfolder]"
_pass_complete_keys
;;
ls|list|edit)