diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-07-18 16:19:13 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-07-18 16:19:13 -0300 |
commit | d0be9cff42cbc572fd5965f57e1c4cb6fc243435 (patch) | |
tree | 3393a756e2947027d5e341a810acb43e295fd48c | |
parent | 1c3eb4f63525dcfae0e1861d3df0196f06ef9638 (diff) | |
download | keyringer-d0be9cff42cbc572fd5965f57e1c4cb6fc243435.tar.gz keyringer-d0be9cff42cbc572fd5965f57e1c4cb6fc243435.tar.bz2 |
More ls completion cleanup
-rw-r--r-- | lib/keyringer/completions/bash | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/keyringer/completions/bash b/lib/keyringer/completions/bash index f962c6a..961e1d0 100644 --- a/lib/keyringer/completions/bash +++ b/lib/keyringer/completions/bash @@ -35,11 +35,7 @@ _keyringer() { opts="ls edit" ;; ls) - if [ -z "${cur}" ]; then - opts="`keyringer $instance ls -p`" - else - opts="$(bash -c "set -f && keyringer $instance ls -p -d ${cur}*")" - fi + opts="$(bash -c "set -f && keyringer $instance ls -p -d ${cur}*" 2> /dev/null)" ;; *) ;; |