summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-07-18 16:19:13 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-07-18 16:19:13 -0300
commitd0be9cff42cbc572fd5965f57e1c4cb6fc243435 (patch)
tree3393a756e2947027d5e341a810acb43e295fd48c
parent1c3eb4f63525dcfae0e1861d3df0196f06ef9638 (diff)
downloadkeyringer-d0be9cff42cbc572fd5965f57e1c4cb6fc243435.tar.gz
keyringer-d0be9cff42cbc572fd5965f57e1c4cb6fc243435.tar.bz2
More ls completion cleanup
-rw-r--r--lib/keyringer/completions/bash6
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)"
;;
*)
;;