Skip to content

Commit a5a4bb4

Browse files
committedJan 26, 2020
_fast-theme: FEATURE – now also the XDG:… themes are being completed
1 parent 23033df commit a5a4bb4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎_fast-theme

+6
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ arguments=(
2626
typeset -a themes
2727
themes=( "$FAST_WORK_DIR"/themes/*.ini(:t:r) )
2828

29+
if [[ -d ${XDG_CONFIG_HOME:-$HOME/.config}/fsh ]] {
30+
typeset -a themes2
31+
themes2=( "${XDG_CONFIG_HOME:-$HOME/.config}"/fsh/*.ini(:t:r) )
32+
themes+=( XDG:${^themes2[@]} )
33+
}
34+
2935
_wanted themes expl "Themes" \
3036
compadd "$@" -a - themes && ret=0
3137
_arguments -s $arguments && ret=0

0 commit comments

Comments
 (0)