My terminal setup, managed with chezmoi: zsh (zi + Powerlevel10k), tmux (Oh my tmux!), Neovim (AstroNvim), iTerm2, and a set of CLI tools pinned with proto. TokyoNight everywhere, Storm in dark mode and Day in light, following the OS appearance.
Supported: macOS, Linux (Ubuntu/Debian; other distros need the equivalent packages) and Windows via WSL2.
On macOS, Linux (Debian/Ubuntu) or inside WSL2's Ubuntu on Windows:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/MrReasonable/dotfiles/main/install.sh)"install.sh does the steps below for you: system packages,
Homebrew (macOS), Rust's installer, chezmoi and the dotfiles, zsh as your login shell,
and (macOS) iTerm2 with TokyoNight as its default profile. It asks for your
password, then chezmoi's questions (name, GitHub username and email, GPG key
ID). Your SSH and GPG keys aren't automated: it checks for them and lists
anything left to do at the end. Re-running it is safe; it updates instead.
It also offers to remove leftovers this setup replaces (other chezmoi copies,
Linux Homebrew, mise, snap Neovim), asking before each; it never removes apt
packages.
On Windows, first do Windows steps 1–3 (WSL, Windows Terminal, font), then run the line above inside Ubuntu.
The rest of this README is the same thing step by step.
- What you get
- macOS
- Linux
- Windows (WSL2)
- After the install (all platforms)
- Day to day
- Updates
- How it's put together
- zsh: zi plugin manager in turbo mode (prompt first, plugins right
after), Powerlevel10k, fzf-tab completion, autosuggestions, syntax
highlighting, atuin history (Ctrl-R), zoxide (
z), navi cheat sheets (Ctrl-G), a "did you know" tip at startup (tipsfor more). - tmux: Oh my tmux! with a TokyoNight status bar, prefix
Ctrl-A, a sesh session picker (prefix T), navi from any pane (prefix Ctrl-G), Ctrl-h/j/k/l moving between tmux panes and Neovim splits alike, a picker for the URLs on screen (prefix U), and in copy mode (prefix [),[/]to jump between commands and(/)to the start of their output. - Neovim: AstroNvim with language support for TypeScript, Rust, Python,
Go, C, Lua, SQL, Terraform, Ansible, shell and more; Claude Code, tests,
git, and a built-in tutorial series (
:Tutor my-00-start). - Languages and CLI tools via proto, each pinned in
~/.proto/.prototools: node, npm, pnpm, uv, rust, go, python, direnv, atuin, carapace, delta, difftastic, dust, hyperfine, jless, just, micromamba, navi (Linux), sd, sesh, tailspin, tlrc, watchexec, xh, yazi, jq (Linux), btop/git-absorb (Linux). - direnv with micromamba:
cdinto a project and its environment activates. - iTerm2 (macOS): a TokyoNight profile that switches with light/dark mode, and a double-tap-Ctrl hotkey window.
-
Command line tools and Homebrew
xcode-select --install /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Follow the "Next steps" Homebrew prints to put
brewon your PATH (it adds abrew shellenvline to~/.zprofile), then open a new terminal. -
Packages
brew install git gh tmux neovim eza gnupg pinentry-mac \ lazygit diff-so-fancy brew install --cask iterm2 font-fira-code-nerd-font # chezmoi from its own installer (same on every OS; update-all upgrades it) sh -c "$(curl -fsLS get.chezmoi.io)" -- -b ~/.local/bin export PATH="$HOME/.local/bin:$PATH"
btop, git-absorb, navi and proto are installed for you in step 5. zsh is already the default shell on macOS.
-
Rust's installer (proto manages the Rust version, but uses rustup to install it)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --default-toolchain none
-
SSH and GPG keys: see Keys. Do this before step 5 if you can: the git config signs every commit.
-
Apply the dotfiles
chezmoi init --apply MrReasonable
It asks for your name, GitHub username, GitHub email and GPG signing key ID (asked once, then kept in
~/.config/chezmoi/chezmoi.toml), then writes the files and runs the install scripts: Homebrew formulas, proto and every pinned tool, the Rust toolchain, and the iTerm2 settings. -
iTerm2: TokyoNight becomes the default profile on
chezmoi apply. iTerm2 has to be closed for that, so if it's open, quit it (Cmd-Q) once: a background process finishes the setup and reopens it.- The double-tap-Ctrl hotkey window needs iTerm2 allowed in System Settings → Privacy & Security → Accessibility (it asks).
- TokyoNight builds on a plain "Default" profile. Every
chezmoi applychecks it's there and recreates it if not (deleted, or never made because iTerm2 first started with TokyoNight already in place), the same way: straight away if iTerm2 is closed, or when it next quits.iterm2-default-profile --ensuredoes that check by hand. - The profile is read-only in iTerm2's settings: change it in
private_Library/…/DynamicProfiles/tokyonight.jsonandchezmoi apply.
-
Carry on with After the install.
Ubuntu 24.04 shown; other distros need the same packages under their own names.
-
Packages
sudo apt update sudo apt install -y zsh git curl tmux gnupg build-essential unzip python3 chsh -s "$(command -v zsh)" # takes effect at next login
-
chezmoi (its own installer, into
~/.local/bin, as on macOS; no Homebrew on Linux)sh -c "$(curl -fsLS get.chezmoi.io)" -- -b ~/.local/bin export PATH="$HOME/.local/bin:$PATH"
Neovim, lazygit, gh and diff-so-fancy come from proto with the other tools (step 5), so nothing is installed outside your home folder. Distro Neovim is usually too old for AstroNvim.
-
Rust's installer
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --default-toolchain none
-
SSH and GPG keys: see Keys.
-
Apply the dotfiles
chezmoi init --apply MrReasonable
Same prompts as on macOS. The install script then installs proto (from its official installer), every pinned tool (Neovim, lazygit and gh included) and the Rust toolchain.
-
Font: icons in the prompt, eza and Neovim need a Nerd Font in the terminal you connect from (e.g. FiraCode Nerd Font from nerdfonts.com). Over SSH, that's your local machine's terminal.
-
Log out and back in (for zsh), then carry on with After the install.
Light/dark switching follows GNOME's colour scheme where it's available; elsewhere (servers, WSL) everything stays dark.
Everything here is zsh, tmux and Unix tools, so on Windows it runs inside WSL2 (Linux in a lightweight VM) with Windows Terminal in front.
-
WSL2 and Ubuntu: in PowerShell as Administrator:
wsl --install -d Ubuntu-24.04
Restart when asked, then open Ubuntu from the Start menu and create your Linux user.
-
Windows Terminal (built into Windows 11; on Windows 10:
winget install Microsoft.WindowsTerminal). -
Font: download FiraCode from nerdfonts.com, unzip it, select the
.ttffiles and choose Install for all users. In Windows Terminal: Settings → Ubuntu → Appearance → Font face → FiraCode Nerd Font. While there, set Settings → Startup → Default profile to Ubuntu. -
Inside Ubuntu, follow the Linux steps from step 1 (skip the font step; that's step 3 here).
-
Notes:
- Keep projects inside the Linux file system (
~/projects), not under/mnt/c: it's many times faster for git, Neovim and builds. - Copying in tmux reaches the Windows clipboard (Oh my tmux! uses
clip.exeunder WSL). - The theme stays TokyoNight Storm (dark); WSL can't see Windows' light/dark setting.
- Keep projects inside the Linux file system (
-
Open a new terminal. The first zsh start downloads zi and all plugins (a minute or so, with progress messages); later starts are instant. If anything looks half-loaded,
exec zsh. -
tmux: run
tmux. Oh my tmux! installs its plugins on first launch. Prefix isCtrl-A;prefix ?lists the keys. -
Neovim: run
nvimand wait for the plugin and language-server installs to finish (:Lazyand:Masonshow progress), then quit and reopen it. Start learning with:Tutor my-00-start. -
Atuin (optional, for synced shell history):
atuin loginoratuin register. -
Check:
chezmoi doctorshould show no errors, andchezmoi diffshould be empty.
Not stored in this repo.
-
SSH: create a key (
ssh-keygen -t ed25519) or restore yours, and add the public key to GitHub (gh auth logincan upload it). zsh's ssh-agent plugin loads~/.ssh/id_*keys automatically. -
GPG (commits are signed): import your key from your backup (
gpg --import private.asc), then trust it (gpg --edit-key <id>,trust,5). Use its key ID at the chezmoi prompt. On macOS, pinentry-mac asks for the passphrase; gpg-agent caches it for a day. -
Pushing dotfile changes:
chezmoi initclones over HTTPS. To push, switch to SSH:chezmoi git -- remote set-url origin git@github.com:MrReasonable/dotfiles.git
| What | How |
|---|---|
| Update everything (dotfiles, packages, zsh plugins, proto tools) | update-all |
| Edit a dotfile | chezmoi edit ~/.zshrc (or edit in ~/.local/share/chezmoi), then chezmoi apply |
| See what would change | chezmoi diff |
| Commit and push changes | chezmoi cd, then git as usual |
| Find a command or key | Ctrl-G (navi), tips, tldr <cmd> |
| A newer tool is out | Nothing to do: Renovate bumps it after 7 days (see Updates) |
| Need a version now | Edit its pin (dot_proto/dot_prototools.tmpl or .chezmoidata.toml), commit, chezmoi apply |
Every tool version is pinned exactly in this repo, and nothing updates itself on your machines. Updates arrive as changes to the pins, and only once a release is 7 days old: most compromised releases are found and pulled within days, so the wait keeps them off your machines.
- Renovate (
renovate.json, the free GitHub app) watches the pins indot_proto/dot_prototools.tmpl(proto tools, proto itself) and.chezmoidata.toml(chezmoi, urlscan, plus jless/git-absorb on ARM Linux). Each pin has a# renovate:comment saying where its releases come from. Patch and minor bumps merge themselves after the wait; majors open a pull request for you. Fixes for known vulnerabilities skip the wait. Its Dependency Dashboard issue lists what's pending. - Things without releases (zsh plugins, zi itself, Oh My Zsh's plugin
files, Oh my tmux, the navi cheat-sheet repos) are pinned to commits in
.chezmoidata.toml[git_pins]..github/workflows/git-pins.ymlbumps them every Monday to branch heads it first saw 7+ days ago (Renovate can't: a commit's date is whatever its author says), checking with GitHub that each is really on the branch. It never runs code from those repos. - Neovim plugins:
.github/workflows/nvim-plugins.ymlruns every Monday, movingnvim/lazy-lock.jsonto plugin commits at least 7 days old (within what AstroNvim allows). Run it any time from the repo's Actions tab. - Your machines:
update-allpulls the repo and installs exactly what the pins say (proto tools, chezmoi, zsh plugins,:Lazy restorefor Neovim), plus the OS packages (Homebrew/apt).
Avoid :Lazy update/:Lazy sync, zi update, proto install <tool> latest and proto upgrade: they skip the wait (and :Lazy update would
change lazy-lock.json in this repo). proto updates itself like any other
tool, through its pin in dot_proto/dot_prototools.tmpl.
One-time setup: install the Renovate GitHub app on this repository.
| Path | What |
|---|---|
dot_zshrc.tmpl |
zsh config (a chezmoi template: differs per OS) |
dot_p10k.zsh |
Powerlevel10k prompt (lean style) |
dot_tmux.conf.local |
Oh my tmux! settings, theme, key bindings |
.chezmoiexternal.toml.tmpl |
Oh my tmux! and the public navi cheat sheets, at pinned commits |
nvim/ |
The Neovim config; ~/.config/nvim is a symlink to it |
dot_proto/ |
proto's tool pins (dot_prototools.tmpl) and plugins for tools proto doesn't know (tool-plugins/) |
run_onchange_after_install-cli-tools.sh.tmpl |
Installs proto and the pinned tools; re-runs when the pins change |
run_after_iterm2-settings.sh.tmpl |
iTerm2 preferences outside its profiles, and its Default profile (macOS; every apply) |
private_Library/…/DynamicProfiles/tokyonight.json |
The iTerm2 profile (macOS) |
private_dot_local/bin/ |
Helper scripts: appearance (light/dark), tips-build, navi-cheats-build, iterm2-default-profile |
dot_config/ |
direnv (with micromamba), eza themes, navi, and others |
.chezmoiignore |
Files skipped per OS (e.g. Library off macOS) |
.chezmoidata.toml |
Versions shared by templates (chezmoi, urlscan; jless/git-absorb) and the [git_pins] commits |
renovate.json, .github/ |
Update automation: Renovate, and the weekly Neovim plugin bump |