Repository navigation
Modernize dotfiles: mise, Starship, plain zsh and XDG git config - #1
Merged
Merged
Conversation
- Replace oh-my-zsh, powerlevel10k, nvm, pyenv, rbenv and pipx with plain zsh, Homebrew plugins, Starship and mise (reads .nvmrc/.python-version/.ruby-version) - Cache tool init scripts; shell startup drops from ~4s to ~160ms - Move shared git config to ~/.config/git so `git config --global` writes to the untracked ~/.gitconfig; add current git defaults, delta and SSH signing - Add fzf, zoxide, eza, bat, fd, git-lfs, uv, shellcheck and the Ghostty config - Manage ~/.zprofile, keep dotfiles/bin off PATH, back up with relative paths - Add a lint workflow and rewrite the README Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Install mise with the official installer instead of Homebrew: the binary is 134 MB instead of 223 MB, slightly faster, and updates via `mise self-update` - Key the cached init scripts on binary mtime too, so self-updates refresh them - Document the fzf, zoxide, eza, bat and delta shortcuts in the README Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What changed
Shell
zsh-autosuggestions,zsh-syntax-highlightingandzsh-completions, and a lean single-line Starship prompt.zsh/options.zsh(history, directory options, key bindings) andzsh/completion.zsh(compinit with a daily cached dump).Ctrl-R,Ctrl-T,Alt-C,**<Tab>), zoxide (z), andeza/bat/fdaliases.~/.zprofileis now managed. The old one loaded nvm a second time in every login shell.dotfiles/binis offPATH, because it shadowed/bin/link.~/.cache/zsh/init, keyed by binary path and modification time, and Homebrew's environment is set statically.Runtimes
mise/config.toml; Poetry now comes from mise's pipx backend, which uses uv.idiomatic_version_file_enable_toolslets mise read.nvmrc,.python-versionand.ruby-version(off by default since mise 2025.10), so Node switches oncdandnvm useis no longer needed.mise self-update.Git
~/.config/git/config, and~/.gitconfigis now an untracked local file. Previously~/.gitconfigwas a symlink into the repo, so everygit config --globalwrote identity data into tracked files. Local values now also correctly override the shared ones; the old[include]at the top did the opposite.diff.algorithm=histogram,merge.conflictStyle=zdiff3,rererepush.autoSetupRemote,fetch.prune/pruneTagsrebase.autoSquash/autoStash/updateRefscommit.verbose,core.fsmonitor,help.autocorrect=promptpull.rebase=trueOther
ghostty/and the Ghostty cask added.Brewfileregrouped. Added:git-lfs(the local gitconfig already required it),glab, delta, Starship, the zsh plugins, fzf, zoxide, eza, bat, fd, uv, shellcheck. Removed: the language runtimes, gnupg, diff-so-fancy.bin/link: backups keep their path relative to~, and a one-time migration moves the old~/.gitconfigsymlink out of the way.bin/bootstrap: puts Homebrew onPATHright after a fresh install (previously the Brewfile install was silently skipped), installs mise, and createsallowed_signers.bin/update: upgrades Homebrew, mise and gh extensions, and lists installed packages that no Brewfile mentions..DS_Storefiles on network or USB drives, press-and-hold repeats keys, Finder lists folders first.zsh -n, Python syntax check.Why
The setup worked but was slow and out of date. Shell startup took about 4 s, mostly nvm. The
gh copilotextension it loaded on every start was retired in October 2025. A freshbin/bootstrapcouldn't reproduce the shell, because nothing installed oh-my-zsh, p10k or nvm.For reviewers
pull.rebase=truemakesgit pullrebase instead of creating merge commits.fetch.pruneTags=trueremoves local tags that no longer exist on the remote.catis aliased tobat, so flags likecat -vfail.\catruns the original.compinit -iis used because Homebrew's group-writableshare/would otherwise trigger a prompt; all completions still load.gh ssh-key add ~/.ssh/id_ed25519.pub --type signing) and on GitLab before new commits show as Verified. Older GPG-signed commits stay verified on GitHub while the GPG key remains uploaded.~/.gitconfigmigration. The old tool folders were moved to~/.dotfiles-backups/, not deleted.Testing
shellcheckon all scripts andzsh -non all zsh files pass.bin/linkchanges nothing on a second run..nvmrc, and missing versions install automatically.mise doctorreports no problems.git config --globalwrites to~/.gitconfigand leaves the repo clean. Test commits show a good SSH signature.brew bundle checkis satisfied, andbrew outdatedis empty.🤖 Generated with Claude Code