Split always-on PATH/env, login hooks, and interactive UX into a managed tree under ~/.config/zsh, with never-overwrite local/ hooks. Agents and interactive shells share one PATH owner; deploy.sh applies the layout safely across machines.
17 lines
517 B
Bash
17 lines
517 B
Bash
# easyzsh stub: login shells only. Not the PATH source of truth (see env/00-path.zsh).
|
|
# Put OS/vendor login hooks in ~/.config/zsh/local/login.local.zsh.
|
|
EASYZSH_HOME="${XDG_CONFIG_HOME:-$HOME/.config}/zsh"
|
|
|
|
if [[ -d "$EASYZSH_HOME/login" ]]; then
|
|
for _easyzsh_f in "$EASYZSH_HOME/login"/*.zsh(N); do
|
|
# shellcheck disable=SC1090
|
|
. "$_easyzsh_f"
|
|
done
|
|
unset _easyzsh_f
|
|
fi
|
|
|
|
if [[ -f "$EASYZSH_HOME/local/login.local.zsh" ]]; then
|
|
# shellcheck disable=SC1090
|
|
. "$EASYZSH_HOME/local/login.local.zsh"
|
|
fi
|