summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/keyringer/completions/bash7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/keyringer/completions/bash b/lib/keyringer/completions/bash
index 2d6fd29..891b57a 100644
--- a/lib/keyringer/completions/bash
+++ b/lib/keyringer/completions/bash
@@ -25,6 +25,7 @@ _keyringer() {
elif [ "${#COMP_WORDS[@]}" == "4" ]; then
# Process config
source $config/config
+ path="`eval echo '$'$instance`"
case "${prev}" in
options|preferences)
@@ -35,7 +36,11 @@ _keyringer() {
;;
ls)
# TODO
- opts="`keyringer $instance ls ${cur}`"
+ if [ -z "${curl}" ]; then
+ opts="`keyringer $instance ls`"
+ else
+ opts="`keyringer $instance ls ${cur}*`"
+ fi
;;
*)
;;