From 1b3bf551cb606722ebd80a8693e377d4caaf2107 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Sun, 3 Feb 2019 22:52:53 +0100 Subject: [PATCH] axzshctl: Look for themes in the "custom_themes" folder, too And update the completion script accordingly. --- bin/axzshctl | 1 + core/50_axzsh/functions/_axzsh | 1 + 2 files changed, 2 insertions(+) diff --git a/bin/axzshctl b/bin/axzshctl index 5915dd4..32dd61a 100755 --- a/bin/axzshctl +++ b/bin/axzshctl @@ -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 diff --git a/core/50_axzsh/functions/_axzsh b/core/50_axzsh/functions/_axzsh index 2f6ab78..bd83bfa 100644 --- a/core/50_axzsh/functions/_axzsh +++ b/core/50_axzsh/functions/_axzsh @@ -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 -- 2.39.2