summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-07-18 14:59:24 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-07-18 14:59:24 -0300
commit23b602d41b1d34af87ea790c9e97cb67442e129c (patch)
treebebd4ac77ae0c32fb1a6eac259302bb312bbdfb3 /lib
parent63a75e777b08d8001234055a016f4782b42a3067 (diff)
downloadkeyringer-23b602d41b1d34af87ea790c9e97cb67442e129c.tar.gz
keyringer-23b602d41b1d34af87ea790c9e97cb67442e129c.tar.bz2
Cleaning up ls completion
Diffstat (limited to 'lib')
-rw-r--r--lib/keyringer/completions/bash10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/keyringer/completions/bash b/lib/keyringer/completions/bash
index 5b2f71d..c91a8ef 100644
--- a/lib/keyringer/completions/bash
+++ b/lib/keyringer/completions/bash
@@ -41,15 +41,6 @@ _keyringer() {
else
local append
opts="`keyringer $instance ls -p -d ${cur}* 2> /dev/null`"
-
- # Append the contents of each folder, one level down
- for opt in $opts; do
- if echo $opt | grep -qe '/$'; then
- append="$append `keyringer $instance ls -d $opt* 2> /dev/null`"
- fi
- done
-
- #opts="$opts $append"
fi
;;
*)
@@ -59,6 +50,7 @@ _keyringer() {
# Return the available options
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ [[ $COMPREPLY == */ ]] && compopt -o nospace
return 0
}