aboutsummaryrefslogtreecommitdiff
path: root/.config/shell/zsh-fast-syntax-highlighting/_fast-theme
diff options
context:
space:
mode:
Diffstat (limited to '.config/shell/zsh-fast-syntax-highlighting/_fast-theme')
-rw-r--r--.config/shell/zsh-fast-syntax-highlighting/_fast-theme6
1 files changed, 6 insertions, 0 deletions
diff --git a/.config/shell/zsh-fast-syntax-highlighting/_fast-theme b/.config/shell/zsh-fast-syntax-highlighting/_fast-theme
index 4c88062..67f8a4d 100644
--- a/.config/shell/zsh-fast-syntax-highlighting/_fast-theme
+++ b/.config/shell/zsh-fast-syntax-highlighting/_fast-theme
@@ -26,6 +26,12 @@ arguments=(
typeset -a themes
themes=( "$FAST_WORK_DIR"/themes/*.ini(:t:r) )
+if [[ -d ${XDG_CONFIG_HOME:-$HOME/.config}/fsh ]] {
+ typeset -a themes2
+ themes2=( "${XDG_CONFIG_HOME:-$HOME/.config}"/fsh/*.ini(:t:r) )
+ themes+=( XDG:${^themes2[@]} )
+}
+
_wanted themes expl "Themes" \
compadd "$@" -a - themes && ret=0
_arguments -s $arguments && ret=0