more XDG refactors; now with scwrypts v5 going into main I can finally include FROG 🐸

This commit is contained in:
2025-02-19 22:00:16 -07:00
parent a20d23ad5e
commit 0db79302d7
9 changed files with 196 additions and 16 deletions

View File

@ -1,7 +1,7 @@
#####################################################################
ZSH_PLUGINS+=(
"$(scwrypts --root 2>/dev/null)/scwrypts.plugin.zsh"
"$(scwrypts --root)/scwrypts.plugin.zsh"
)
() { # default environment name lookup
@ -14,7 +14,7 @@ ZSH_PLUGINS+=(
"dev" \
;
do
[ -f "$HOME/.config/scwrypts/environments/scwrypts/$ENVIRONMENT_NAME" ] \
[ -f "${XDG_CONFIG_HOME:-${HOME}/.config}/scwrypts/environments/$ENVIRONMENT_NAME.scwrypts.env.yaml" ] \
&& export SCWRYPTS_ENV="$ENVIRONMENT_NAME" \
&& break
done