aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-07-18 14:35:41 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-07-18 14:35:41 -0300
commitd92f6ba94a7012e42b71b675f146efc14a86482a (patch)
tree7b9c9608bdf4917696daa97d3b661319eb50b030
parent2301bcf57f803247e0fa9ea7fcc7c0918b355c23 (diff)
downloadkeyringer-d92f6ba94a7012e42b71b675f146efc14a86482a.tar.gz
keyringer-d92f6ba94a7012e42b71b675f146efc14a86482a.tar.bz2
Cleaning up ls completion
-rw-r--r--lib/keyringer/completions/bash7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/keyringer/completions/bash b/lib/keyringer/completions/bash
index 403bb11..dd8b8e9 100644
--- a/lib/keyringer/completions/bash
+++ b/lib/keyringer/completions/bash
@@ -37,12 +37,9 @@ _keyringer() {
ls)
# TODO
if [ -z "${cur}" ]; then
- # List folders with leading slash and remove @ symlink indicator
- #opts="`ls --file-type -1 $path/keys | sed -e 's/@$//'`"
- opts="`keyringer $instance ls --file-type -1 | sed -e 's/@$//'`"
+ opts="`keyringer $instance ls -p`"
else
- #opts="`ls --file-type -1 -d $path/keys/${cur}* | sed -e 's/@$//'`"
- opts="`keyringer $instance ls --file-type -1 -d ${cur}* | sed -e 's/@$//'`"
+ opts="`keyringer $instance ls -p -d ${cur}*`"
fi
;;
*)