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:
Jeffrey
2026-08-06 14:36:08 +08:00
parent ed5365859c
commit f8dcc29a2f
14 changed files with 546 additions and 391 deletions
+16
View File
@@ -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