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
+4
View File
@@ -0,0 +1,4 @@
# Copy to ~/.config/zsh/local/env.local.zsh (installer never overwrites local/).
# Runs for every zsh after managed env modules.
#
# . "$HOME/.cargo/env"
+2
View File
@@ -0,0 +1,2 @@
# Copy to ~/.config/zsh/local/interactive.local.zsh (installer never overwrites local/).
# Interactive only, after oh-my-zsh and managed post-omz aliases.
+3
View File
@@ -0,0 +1,3 @@
# Copy to ~/.config/zsh/local/login.local.zsh (installer never overwrites local/).
# Login shells only: OS/vendor hooks (OrbStack, MacPorts, product installers).
# Do not put primary user-tool PATH here; that belongs in env/00-path.zsh.