yage
ad66d50b11
finally going to commit that zshrc refactor - smolvsdefault on altaria - i3-utils refactor - no need for custom scwrypt executable anymore - time to say goodbye to the old dotwryn.env in favor of the new and improved rc.ds - vim/rc.d refactor + QuickREPL and QuickCommand replacements for \r and \t - going to stop tracking Archives explicitly until new hard drive - tty-colorscheme is now referenced directly - colorscheme/spring-sunset needed to swap primary/secondary colors for focus in i3 since it was confusing - setup config no longer needs to create ~/.config/wryn/env.vim; added some dependencies to arch-linux - switch from dmenu to rofi by default; allow .i3 overrides in colorschemes; tty-colorscheme is now referenced directly
25 lines
580 B
Bash
25 lines
580 B
Bash
#####################################################################
|
|
|
|
ZSH_PLUGINS+=(
|
|
"$(scwrypts --root 2>/dev/null)/scwrypts.plugin.zsh"
|
|
)
|
|
|
|
() { # default environment name lookup
|
|
local ENVIRONMENT_NAME HOSTNAME="$(hostnamectl --static)"
|
|
|
|
for ENVIRONMENT_NAME in \
|
|
"local.${HOSTNAME}.secret" \
|
|
"local.${HOSTNAME}" \
|
|
"local" \
|
|
"dev" \
|
|
;
|
|
do
|
|
[ -f "$HOME/.config/scwrypts/environments/scwrypts/$ENVIRONMENT_NAME" ] \
|
|
&& export SCWRYPTS_ENV="$ENVIRONMENT_NAME" \
|
|
&& break
|
|
done
|
|
}
|
|
|
|
#####################################################################
|
|
return 0
|