]> gitweb.fluxo.info Git - keyringer.git/commitdiff
More ls completion cleanup
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 18 Jul 2013 19:19:13 +0000 (16:19 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 18 Jul 2013 19:19:13 +0000 (16:19 -0300)
lib/keyringer/completions/bash

index f962c6a894381660966f3a6ca5284b817d1d7637..961e1d08817e61c9a70f508e00bab67f6c813779 100644 (file)
@@ -35,11 +35,7 @@ _keyringer() {
         opts="ls edit"
         ;;
       ls)
-        if [ -z "${cur}" ]; then
-          opts="`keyringer $instance ls -p`"
-        else
-          opts="$(bash -c "set -f && keyringer $instance ls -p -d ${cur}*")"
-        fi
+        opts="$(bash -c "set -f && keyringer $instance ls -p -d ${cur}*" 2> /dev/null)"
         ;;
       *)
         ;;