aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-09-27 19:29:32 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-09-27 19:29:32 -0300
commit17ca3adc1893cfae9839d3d8b6ba148cafd22842 (patch)
treefd6537e0210acd92ed637f27ae81beee55cdd299 /lib
parentde41af4df36193fb9df4b211243dc07b98156807 (diff)
downloadkeyringer-17ca3adc1893cfae9839d3d8b6ba148cafd22842.tar.gz
keyringer-17ca3adc1893cfae9839d3d8b6ba148cafd22842.tar.bz2
Include 'open' action into completion code
Diffstat (limited to 'lib')
-rw-r--r--lib/keyringer/completions/bash/keyringer2
-rw-r--r--lib/keyringer/completions/zsh/_keyringer2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/keyringer/completions/bash/keyringer b/lib/keyringer/completions/bash/keyringer
index 936e5e0..69f0055 100644
--- a/lib/keyringer/completions/bash/keyringer
+++ b/lib/keyringer/completions/bash/keyringer
@@ -82,7 +82,7 @@ _keyringer() {
recipients)
opts="ls edit"
;;
- ls|encrypt|encrypt-batch|decrypt|edit|append|append-batch|del|recrypt)
+ ls|encrypt|encrypt-batch|decrypt|edit|append|append-batch|del|recrypt|open)
opts="$(bash -c "set -f && keyringer $instance ls -p -d ${cur}*" 2> /dev/null)"
;;
genpair)
diff --git a/lib/keyringer/completions/zsh/_keyringer b/lib/keyringer/completions/zsh/_keyringer
index 6059697..ec7f655 100644
--- a/lib/keyringer/completions/zsh/_keyringer
+++ b/lib/keyringer/completions/zsh/_keyringer
@@ -45,7 +45,7 @@ _keyringer() {
recipients)
compadd "$@" ls edit
;;
- ls|encrypt|encrypt-batch|decrypt|edit|append|append-batch|del|recrypt)
+ ls|encrypt|encrypt-batch|decrypt|edit|append|append-batch|del|recrypt|open)
# TODO: do not rely on bash
compadd "$@" $(bash -c "set -f && keyringer $words[2] ls -p -d $words[4]*" 2> /dev/null)
;;