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.
18 lines
644 B
Bash
18 lines
644 B
Bash
# easyzsh stub: interactive shells only. Keep it thin; logic lives under ~/.config/zsh/.
|
|
# Personal interactive overlays: ~/.config/zshrc/*.zsh (before oh-my-zsh).
|
|
# Machine-local interactive: ~/.config/zsh/local/interactive.local.zsh (after omz).
|
|
EASYZSH_HOME="${XDG_CONFIG_HOME:-$HOME/.config}/zsh"
|
|
|
|
if [[ -d "$EASYZSH_HOME/interactive" ]]; then
|
|
for _easyzsh_f in "$EASYZSH_HOME/interactive"/*.zsh(N); do
|
|
# shellcheck disable=SC1090
|
|
source "$_easyzsh_f"
|
|
done
|
|
unset _easyzsh_f
|
|
fi
|
|
|
|
if [[ -f "$EASYZSH_HOME/local/interactive.local.zsh" ]]; then
|
|
# shellcheck disable=SC1090
|
|
source "$EASYZSH_HOME/local/interactive.local.zsh"
|
|
fi
|