commit 0d10b4f4b8a55bd389dc2c5eb5c338ef328032cf
parent aea785914f5549e16363d83b0ef660a59d184f55
Author: Johan Venant <jvenant@invicem.pro>
Date: Mon, 24 Mar 2014 13:42:07 -0300
Update zsh completion.
Diffstat:
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git 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)