]> arthur.barton.de Git - ax-zsh.git/commitdiff
axzshctl: Look for themes in the "custom_themes" folder, too
authorAlexander Barton <alex@barton.de>
Sun, 3 Feb 2019 21:52:53 +0000 (22:52 +0100)
committerAlexander Barton <alex@barton.de>
Sun, 3 Feb 2019 21:52:53 +0000 (22:52 +0100)
And update the completion script accordingly.

bin/axzshctl
core/50_axzsh/functions/_axzsh

index 5915dd468aa95446e9b033b953d4c1db3a5bac87..32dd61a17577e83fd33f79faf33f235263eac478 100755 (executable)
@@ -206,6 +206,7 @@ function SetTheme {
        else
                # Look for theme inside of installed plugins:
                for dname (
+                       "$AXZSH/custom_themes"
                        "$AXZSH/custom_plugins/"*(N)
                        "$AXZSH/repos/"*(N)
                ); do
index 2f6ab781f6c4b375c8c1138958e7cd3f8833b58b..bd83bfa8b8a89175a4137340b899a953d1c38de2 100644 (file)
@@ -28,6 +28,7 @@ _axzshctl() {
                  "set-theme")
                        compadd "$@" -- "-" \
                                $(ls -1 "$AXZSH"/themes | cut -d'.' -f1) \
+                               $(ls -1 "$AXZSH"/custom_themes | cut -d'.' -f1) \
                                $(find "$AXZSH/custom_plugins" "$AXZSH/repos" -maxdepth 2 -iname '*.zsh-theme' -exec basename {} \; | cut -d'.' -f1)
                        ;;
                esac