refactor(shell): thin stubs with managed ~/.config/zsh tree
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.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user