diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-12-10 22:32:59 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-12-10 22:32:59 -0200 |
commit | 7aac0eea6ab0690e040ffe2ed2eab4adde8d5ead (patch) | |
tree | 5775b9195924b719f9583363bf384ace9b4bce84 /lib/keyringer/completions/zsh | |
parent | 96b8790728b2eec66f99c2e64d8a332abca41f6f (diff) | |
download | keyringer-7aac0eea6ab0690e040ffe2ed2eab4adde8d5ead.tar.gz keyringer-7aac0eea6ab0690e040ffe2ed2eab4adde8d5ead.tar.bz2 |
Fix instance list at shell completions
Diffstat (limited to 'lib/keyringer/completions/zsh')
-rw-r--r-- | lib/keyringer/completions/zsh/_keyringer | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/keyringer/completions/zsh/_keyringer b/lib/keyringer/completions/zsh/_keyringer index 0eba079..e889fd8 100644 --- a/lib/keyringer/completions/zsh/_keyringer +++ b/lib/keyringer/completions/zsh/_keyringer @@ -20,9 +20,9 @@ _keyringer() { # Process config source $config/config - local keyrings="`ls --color=never $config | sed -e 's/config//' | xargs`" + local keyrings="`ls --color=never $config | sed -e '/^config$/d' | xargs`" local keyring_path="`eval echo '$'$words[2]`" - local instances="`echo $keyrings | sed -e 's/ /\\\|/g'`" + local instances="`echo $keyrings | sed -e 's/ /$\\\|^/g' -e 's/^/^/' -e 's/$/$/'`" _arguments \ '1: :->keyring' \ |