From: Silvio Rhatto Date: Fri, 27 Sep 2013 22:29:32 +0000 (-0300) Subject: Include 'open' action into completion code X-Git-Tag: 0.2.6~21 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=17ca3adc1893cfae9839d3d8b6ba148cafd22842;p=keyringer.git Include 'open' action into completion code --- 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) ;;