summaryrefslogtreecommitdiff
path: root/lib/keyringer/completions/zsh/_keyringer
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-11-26 17:18:56 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-11-26 17:18:56 -0200
commit5f1590e0722ee5ee9fed2ccc43adfb88f00218fd (patch)
tree80701dcf0437f4134ca1c15ea1ff7bba72a10230 /lib/keyringer/completions/zsh/_keyringer
parenta706c54574b389c3e2f74ff487b1b7ca42483dc3 (diff)
parent0358ba548d9d3aaaeb23984e092318522238bca9 (diff)
downloadkeyringer-5f1590e0722ee5ee9fed2ccc43adfb88f00218fd.tar.gz
keyringer-5f1590e0722ee5ee9fed2ccc43adfb88f00218fd.tar.bz2
Imported Upstream version 0.2.9upstream_keyringer_0.2.9
Diffstat (limited to 'lib/keyringer/completions/zsh/_keyringer')
-rw-r--r--lib/keyringer/completions/zsh/_keyringer5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/keyringer/completions/zsh/_keyringer b/lib/keyringer/completions/zsh/_keyringer
index 50ff433..5717b00 100644
--- a/lib/keyringer/completions/zsh/_keyringer
+++ b/lib/keyringer/completions/zsh/_keyringer
@@ -50,7 +50,8 @@ _keyringer() {
recipients)
compadd "$@" ls edit
;;
- ls|encrypt|encrypt-batch|decrypt|edit|append|append-batch|del|recrypt|open)
+ ls|tree|encrypt|encrypt-batch|decrypt|edit|append|append-batch|del|rm|recrypt|open)
+ words[4]="`echo $words[4] | sed -e "s|^/*||"`" # avoid leading slash
compadd "$@" $(KEYRINGER_CHECK_VERSION=false keyringer $words[2] ls -p -d $words[4]'*' 2> /dev/null)
;;
genpair)
@@ -69,9 +70,11 @@ _keyringer() {
misc)
case "$words[3]" in
recipients)
+ words[5]="$(echo $words[5] | sed -e "s|^/||")" # TODO: avoid leading slash
compadd "$@" $(cd $keyring_path/config/recipients && ls --color=never -p $words[5]'*' 2> /dev/null)
;;
genpair)
+ words[5]="$(echo $words[5] | sed -e "s|^/||")" # TODO: avoid leading slash
compadd "$@" $(KEYRINGER_CHECK_VERSION=false keyringer $words[2] ls -p -d $words[5]'*' 2> /dev/null)
;;
git)