From a5a4bb4181fe87afa16a331779fb70761afd6eea Mon Sep 17 00:00:00 2001 From: Sebastian Gniazdowski Date: Sun, 26 Jan 2020 22:59:02 +0100 Subject: [PATCH] =?UTF-8?q?=5Ffast-theme:=20FEATURE=20=E2=80=93=C2=A0now?= =?UTF-8?q?=20also=20the=20XDG:=E2=80=A6=20themes=20are=20being=20complete?= =?UTF-8?q?d?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _fast-theme | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/_fast-theme b/_fast-theme index 4c88062..67f8a4d 100644 --- a/_fast-theme +++ b/_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