]> gitweb.fluxo.info Git - keyringer.git/commitdiff
Include 'open' action into completion code
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 27 Sep 2013 22:29:32 +0000 (19:29 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 27 Sep 2013 22:29:32 +0000 (19:29 -0300)
lib/keyringer/completions/bash/keyringer
lib/keyringer/completions/zsh/_keyringer

index 936e5e0c6c4618f5011533e7704e892e47e31b72..69f0055ec1c989f758dc7b2ca2972e97656961be 100644 (file)
@@ -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)
index 60596970d8adcdbb19399e97988a009553f2011c..ec7f655b1889854cc82a2fe624aac96f1f4b77bc 100644 (file)
@@ -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)
             ;;