]> arthur.barton.de Git - ax-zsh.git/commitdiff
50_axzsh: Fix completion of theme names
authorAlexander Barton <alex@barton.de>
Mon, 10 Apr 2017 17:00:15 +0000 (19:00 +0200)
committerAlexander Barton <alex@barton.de>
Mon, 10 Apr 2017 17:00:15 +0000 (19:00 +0200)
core/50_axzsh/functions/_axzsh

index d8ed1b9019caa5606aa96772e408576bd68cfc72..e3ae1755dd2702ade47c96a63b1e7745296a195c 100644 (file)
@@ -21,11 +21,10 @@ _axzshctl() {
          'args')
                case "$words[2]" in
                  "enable-plugin"|"disable-plugin")
-                       compadd "$@" $(ls -1 "$AXZSH"/plugins)
+                       compadd "$@" -- $(ls -1 "$AXZSH"/plugins)
                        ;;
                  "set-theme")
-                       [[ -z $words[3] ]] \
-                               && compadd "$@" -- "-" $(ls -1 "$AXZSH"/themes | cut -d'.' -f1)
+                       compadd "$@" -- "-" $(ls -1 "$AXZSH"/themes | cut -d'.' -f1)
                        ;;
                esac
                ;;