Commit Graph
11 Commits
Author SHA1 Message Date
Jeffrey 42c8305871 fix(fnm): load managed Node from always-on zsh layer
fnm lived in interactive-only ~/.config/zshrc, so ssh/agents/zsh -c
missed fnm-managed node. Source ~/.config/zsh/*.zsh from .zshenv and
install the fragment as zsh/fnm instead.
2026-08-07 14:08:07 +08:00
Jeffrey 7a43940317 refactor(shell): stop managing ~/.zprofile
Always-on and machine hooks already live in .zshenv / local.zsh.
Drop the empty stub, remove it on deploy, and leave real .zprofile
files to optional migration into local.zsh only.
2026-08-06 14:50:11 +08:00
Jeffrey e5e2801ce8 refactor(shell): collapse managed tree back into stubs
Drop ~/.config/zsh/{env,interactive,login} modules. PATH and local.zsh
live in .zshenv; interactive UX is a single .zshrc again. Deploy only
installs the three stubs and removes obsolete trees/examples.
2026-08-06 14:46:56 +08:00
Jeffrey 7f80bb66e1 chore: ignore .DS_Store 2026-08-06 14:41:46 +08:00
Jeffrey caac9235f6 fix(shell): use single ~/.config/zsh/local.zsh for machine local
Replace the local/ directory of split env/login/interactive files with
one always-on local.zsh sourced from .zshenv. Deploy migrates old
fragments and never overwrites local.zsh.
2026-08-06 14:41:31 +08:00
Jeffrey f8dcc29a2f 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.
2026-08-06 14:36:08 +08:00
Jeffrey ed5365859c fix(zshenv): put ~/.local/bin on PATH for every zsh
Non-interactive agent shells (Codex, Claude) skip .zshrc and never saw
user-local tools installed via pipx/uv/grok. Add ~/.local/bin in
.zshenv with an idempotent guard, and source optional
~/.config/zshenv.local for machine-local early env.
2026-08-06 14:25:52 +08:00
Jeffrey 6f6a8ac5f8 feat(zshrc): add cleanzip helper for macOS junk in archives
Small portable utility next to cheat/speedtest; strips __MACOSX
and .DS_Store entries via zip -d.
2026-08-05 17:15:45 +08:00
Jeffrey 91ec7985ad fix(zshrc): only alias k when the omz k plugin loaded
Lean plugin prefs drop k; an unconditional k=k -h alias then
points at nothing useful. Gate on the function the plugin defines.
2026-08-05 17:11:17 +08:00
Jeffrey d5eb16c4ab feat(zshrc): default j=z alias and 30-day omz update interval
zoxide is part of the base install; a short j jump alias matches
common muscle memory. Refresh omz on a monthly cadence instead of
the bi-weekly default.
2026-08-05 17:08:38 +08:00
Jeffrey f2695ca431 fix(zshrc): safer trash rm wrapper; drop personal install fragment
Keep ~/.zshrc upgrade-friendly by not shipping author-specific
plugin samples as patch targets. Prefer the flag-tolerant trash
function over bare aliases so common rm -f usage still works.
2026-08-05 16:53:25 +08:00