From 267afb70ae6c7d2fcdd6897a18781bb7137f14e7 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 18 Jul 2013 14:15:04 -0300 Subject: Minor enhancement on ls completion --- lib/keyringer/completions/bash | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 ;; *) ;; -- cgit v1.2.3