password-store

Simple password manager using gpg and ordinary unix directories
git clone https://git.zx2c4.com/password-store
Log | Files | Refs | README | LICENSE

commit 36a453ed91407dec1bb2215e0a871d23c0645305
parent bdc0960d68d2ab6e4f078356092f97ccae15f0b4
Author: Brian Mattern <rephorm@rephorm.com>
Date:   Wed, 12 Sep 2012 22:25:01 -0700

add edit command to zsh completion

Diffstat:
Mcontrib/pass.zsh-completion | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/contrib/pass.zsh-completion b/contrib/pass.zsh-completion @@ -19,12 +19,13 @@ _pass () { (( $+functions[_pass_cmd_$cmd] )) && _pass_cmd_$cmd else - _values : \ + _values 'command' \ "init[Initialize new password storage]" \ "ls[subfolder List names of passwords]" \ "show[Decrypt and print a password]" \ "insert[Insert a new password]" \ "generate[Generate a new password using pwgen]" \ + "edit[Edit a password with \$EDITOR]" \ "rm[Remove the password]" \ "push[push the latest changes using git-push(1)]" \ "pull[pull the latest changes using git-pull(1)]" \ @@ -49,6 +50,11 @@ _pass_cmd_show () { #'::pass id:_files -W ~/.password-store -g "*.gpg(|.*)(-.)"' } +_pass_cmd_edit () { + _arguments : \ + '::edit:_get_stored_pwd' +} + _pass_cmd_insert () { _arguments : \ "-n[no console output]" \ @@ -70,4 +76,5 @@ _pass_cmd_rm () { _get_stored_pwd () { compadd `find ~/.password-store \( -name .git -o -name .gpg-id \) -prune -o -type f -print | sed 's#.*\.password-store*.##'| sed 's#\.gpg##' | sort` + }