feat(shell): eza aliases, zoxide cd, and tmpl diff highlighting#88
Merged
Conversation
Remove the pinned Python entry from the asdf tool versions file and normalize spacing in the remaining tool declarations. This keeps the shared tool list focused on tools managed by the dotfiles.
Add shared profile.d aliases (ls, ll, la, lla, lt, lS) gated on eza being on PATH so bash and zsh share the same directory listing UX. Install eza via Homebrew on macOS. Verify: chezmoi apply && source ~/.config/chezmoi/profile.d/eza-aliases.sh && alias ll
0b09c9e to
451de79
Compare
Move zoxide init into shared profile.d and use --cmd cd for bash and zsh. Skip zoxide in agent subprocesses (CURSOR_AGENT, CLAUDECODE=1, CUSTOM_AGENT_SHELL) so they keep builtin cd and avoid database noise. Add zoxide to the Brewfile. Verify: chezmoi apply && type cd
08d1b1c to
f4d1846
Compare
Load profile.d (00-agent-shell.sh, zoxide-init) before mise activate so agent subprocesses skip zoxide while keeping full mise cd hooks for per-directory tool versions. Verify: CURSOR_AGENT=1 bash -lc 'type z' # not found
f4d1846 to
8c2a8ee
Compare
3e86188 to
c8284bf
Compare
Delta/syntect do not recognize the .tmpl extension, so jj diff/show rendered chezmoi templates as plain text. Default to Bash syntax in chezmoi and dotfiles repos via scoped jj pager and gitconfig-chezmoi; add bat --map-syntax for previews. Per-host languages (toml vs bash) and Go template overlay remain future work until delta supports map-syntax or combined grammars. Verify: chezmoi apply && jj diff dot_bash_profile.tmpl
profile.d ran zoxide before mise activate, so mise's __zsh_like_cd replaced zoxide's cd. Defer zoxide init until after mise and re-wrap __zoxide_cd in bash so mise hook-env still runs on directory changes. Verify: chezmoi apply && source ~/.bash_profile && type cd
c8284bf to
f4b3099
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
profile.d/eza-aliases.sh(ls,ll,la,lla,lt,lS) whenezais on PATH, plusbrew "eza"on macOS.profile.d/zoxide-init.sh.tmpl: human shells getzoxide init --cmd cd(bash and zsh); agent subprocesses skip zoxide (CURSOR_AGENT,CLAUDECODE=1,CUSTOM_AGENT_SHELL) so they keep normalcdand avoid database noise.profile.dbeforemise activateso agent detection runs first; misecdhook (__zsh_like_cd) stays enabled in agent sessions for per-directory tool versions..tmplfiles in chezmoi/dotfiles repos (gitconfig-chezmoi, scoped jj pager, bat--map-syntax). Per-host languages (toml vs bash) and Go template overlay deferred until delta supports map-syntax or combined grammars.Test plan
chezmoi applybrew install eza zoxide bat(if missing)type cd→ zoxide function;alias ll→ ezaCURSOR_AGENT=1 bash -lc 'type z'→ not found;type cd→ function (__zsh_like_cdfrom mise)jj diff dot_bash_profile.tmplandjj show— syntax highlighting on.tmplhunksjust repos::pre-commit-verify(or local pre-commit) on touched files