diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-08-16 23:13:28 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-08-16 23:13:28 -0300 |
commit | 48444f3a7b5971f6285d8c891d2bfd27baa772c7 (patch) | |
tree | 59ac4768432ab824a5e397c2cd335c2b3944fe5b /lib/keyringer/completions/zsh | |
parent | 004f0b0f950d0c8e43e2a4d59638fa152138dc71 (diff) | |
download | keyringer-48444f3a7b5971f6285d8c891d2bfd27baa772c7.tar.gz keyringer-48444f3a7b5971f6285d8c891d2bfd27baa772c7.tar.bz2 |
Check config before completion
Diffstat (limited to 'lib/keyringer/completions/zsh')
-rw-r--r-- | lib/keyringer/completions/zsh/_keyringer | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/keyringer/completions/zsh/_keyringer b/lib/keyringer/completions/zsh/_keyringer index 3aba2b3..b8f9d31 100644 --- a/lib/keyringer/completions/zsh/_keyringer +++ b/lib/keyringer/completions/zsh/_keyringer @@ -33,6 +33,13 @@ _keyringer() { # Initial options local config="$HOME/.keyringer" + + # Check if we have initial configuration + if [ ! -d "$config" ]; then + return + fi + + # Process config local keyrings="`ls $config | sed -e 's/config//'`" _arguments \ |