_fast-theme: FEATURE – now also the XDG:… themes are being completed

This commit is contained in:
Sebastian Gniazdowski 2020-01-26 22:59:02 +01:00
parent 23033dfbf8
commit a5a4bb4181

View file

@ -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