summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-07-18 14:15:04 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-07-18 14:15:04 -0300
commit267afb70ae6c7d2fcdd6897a18781bb7137f14e7 (patch)
tree3fda43eddfac792dcb37fb980e80eb743e3067f4
parent1046b1ebcb3bf0841636d2215faf95ddf1895b47 (diff)
downloadkeyringer-267afb70ae6c7d2fcdd6897a18781bb7137f14e7.tar.gz
keyringer-267afb70ae6c7d2fcdd6897a18781bb7137f14e7.tar.bz2
Minor enhancement on ls completion
-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
;;
*)
;;