aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-07-18 14:34:31 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-07-18 14:34:31 -0300
commit2301bcf57f803247e0fa9ea7fcc7c0918b355c23 (patch)
tree71e5f54211bd0c6dbe8554594fc8c28902e88e94 /lib
parent267afb70ae6c7d2fcdd6897a18781bb7137f14e7 (diff)
downloadkeyringer-2301bcf57f803247e0fa9ea7fcc7c0918b355c23.tar.gz
keyringer-2301bcf57f803247e0fa9ea7fcc7c0918b355c23.tar.bz2
Minor enhancement on ls completion (2)
Diffstat (limited to 'lib')
-rw-r--r--lib/keyringer/completions/bash9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/keyringer/completions/bash b/lib/keyringer/completions/bash
index 891b57a..403bb11 100644
--- a/lib/keyringer/completions/bash
+++ b/lib/keyringer/completions/bash
@@ -36,10 +36,13 @@ _keyringer() {
;;
ls)
# TODO
- if [ -z "${curl}" ]; then
- opts="`keyringer $instance ls`"
+ 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/@$//'`"
else
- opts="`keyringer $instance ls ${cur}*`"
+ #opts="`ls --file-type -1 -d $path/keys/${cur}* | sed -e 's/@$//'`"
+ opts="`keyringer $instance ls --file-type -1 -d ${cur}* | sed -e 's/@$//'`"
fi
;;
*)