Files
easyzsh/.zshenv
T
Jeffrey caac9235f6 fix(shell): use single ~/.config/zsh/local.zsh for machine local
Replace the local/ directory of split env/login/interactive files with
one always-on local.zsh sourced from .zshenv. Deploy migrates old
fragments and never overwrites local.zsh.
2026-08-06 14:41:31 +08:00

21 lines
660 B
Bash

# easyzsh stub: every zsh loads this. Keep it thin; logic lives under ~/.config/zsh/.
# Machine-local overrides: ~/.config/zsh/local.zsh (never overwritten by deploy).
EASYZSH_HOME="${XDG_CONFIG_HOME:-$HOME/.config}/zsh"
if [[ -d "$EASYZSH_HOME/env" ]]; then
for _easyzsh_f in "$EASYZSH_HOME/env"/*.zsh(N); do
# shellcheck disable=SC1090
. "$_easyzsh_f"
done
unset _easyzsh_f
fi
if [[ -f "$EASYZSH_HOME/local.zsh" ]]; then
# shellcheck disable=SC1090
. "$EASYZSH_HOME/local.zsh"
elif [[ -f "$HOME/.config/zshenv.local" ]]; then
# Legacy path from earlier easyzsh layouts.
# shellcheck disable=SC1090
. "$HOME/.config/zshenv.local"
fi