From d92f6ba94a7012e42b71b675f146efc14a86482a Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 18 Jul 2013 14:35:41 -0300 Subject: Cleaning up ls completion --- lib/keyringer/completions/bash | 7 ++----- 1 file 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 ;; *) -- cgit v1.2.3