From: Silvio Rhatto Date: Thu, 18 Jul 2013 17:15:04 +0000 (-0300) Subject: Minor enhancement on ls completion X-Git-Tag: 0.2.1~17 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=267afb70ae6c7d2fcdd6897a18781bb7137f14e7;p=keyringer.git Minor enhancement on ls completion --- 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 ;; *) ;;