summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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)"
;;
*)
;;