]> gitweb.fluxo.info Git - keyringer.git/commitdiff
Cleaning up ls completion
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 18 Jul 2013 17:35:41 +0000 (14:35 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 18 Jul 2013 17:35:41 +0000 (14:35 -0300)
lib/keyringer/completions/bash

index 403bb114b7ecaa4eaac1e3e2969e6487b680d003..dd8b8e9f1a356517560b8be14ee267ed48baf510 100644 (file)
@@ -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
         ;;
       *)