Personal macOS environment: Zsh, WezTerm, Ghostty, Starship, Neovim and gitui. WezTerm and Ghostty use Geist Mono with Symbols Nerd Font Mono; both fonts are in Brewfile. Starship modules use a single separating space; hidden modules add no spacing.
Requires macOS, Xcode Command Line Tools (including Git and Make), Bash and Zsh,
plus internet access for packages and editor/terminal plugins. If the Command
Line Tools are missing, run xcode-select --install and finish the installation
before continuing. Bootstrap installs Homebrew and mise if they are missing.
Back up existing configurations first: the link installer does not create backups. Existing symlinks are replaced automatically; replacing ordinary files/directories requires confirmation. Keep the repository at its installed location because configuration links point into it.
git clone https://github.com/nashabanov/dotfiles.git ~/dotfiles
cd ~/dotfiles
make bootstrap
exec zsh -lBootstrap prepares Homebrew and mise, installs the selected Brewfile packages, creates the links in mise.toml, then installs the global mise tools and generates Zsh completions. The new Zsh session activates mise.
Choose Ghostty (the initial default), WezTerm, both terminals or skip terminal setup.
Bootstrap remembers the selection and preserves previously configured terminals. To select both in advance, run
make bootstrap BOOTSTRAP_FLAGS='--terminal both'.
Open nvim once to install Lazy plugins; WezTerm downloads its
tabline plugin when first loading the configuration. Launch OrbStack once to
initialize Docker integration.
Run make doctor to verify the installed environment.
- Homebrew manages applications, fonts, Zsh plugins and system tools. Brewfile
- mise manages the default runtimes and developer tools. Projects can override runtime versions. Rust uses rustup, and pre-commit uses the mise
pipx:backend. Global tool manifest - Codex, OpenCode and OpenSpec are declared together. Run
mise installfrom the checkout after adding an agent tool. Agent tools - mise installs the language servers used by Neovim. Editor tools
Run Make targets from the checkout. Global mise tasks are available from any
directory once bootstrap links the mise configuration. To repair that link,
run make doctor, make links, then make doctor from the checkout.
| Command | Purpose |
|---|---|
make bootstrap |
Install or reapply the environment |
make lint |
Run ShellCheck, Ruff, StyLua, Selene and Zsh syntax checks |
make test |
Run shell and Neovim regression tests |
make check |
Run doctor for this checkout, then lint and tests |
make doctor |
Check installed commands, links, packages and shell configuration |
make links |
Create or restore the configured links |
mise run zsh-completions-sync |
Regenerate Zsh completions |
mise run tools:update |
Upgrade mise tools and refresh completions |
make brew-cleanup |
Review and optionally remove Homebrew packages outside the Brewfile |
make update |
Update Homebrew packages, then mise tools |
Run checks from a shell with mise activated. Neovim tests need the installed
go-context.nvim plugin. Doctor reports OK, FAIL and WARN; failures return
a nonzero status. Colors follow the terminal, NO_COLOR and FORCE_COLOR=1.
Use :checkhealth for Neovim runtime diagnostics.
CI runs make lint test on macOS for pushes and pull
requests, using the go-context.nvim revision from nvim/lazy-lock.json.
Fresh-install smoke runs weekly and manually on
macOS. It runs the bootstrap script, doctor, login/interactive Zsh and headless
Neovim startup, waiting for Lazy to restore locked plugins first. It uses
Homebrew's HOMEBREW_BUNDLE_CASK_SKIP with casks read from Brewfile to omit
desktop apps and fonts. Doctor respects the same exclusions.
Run make brew-cleanup separately to review packages outside the Brewfile.
To update mise tools separately, run mise run tools:update. Avoid global npm/uv installations of
commands already managed by mise.
Space is the leader key. Main shortcuts:
| Keys | Action |
|---|---|
<leader>1 / <leader>2 / <leader>bc |
Previous / next / close buffer |
<leader>e / <leader>g |
File tree / Git status tree |
<leader>ff / <leader>fg / <leader>fz |
Find files / search text / fuzzy search |
gd / gr / gy / K |
Definition / references / type definition / hover |
<leader>ca / <leader>rn |
Code action / rename |
<leader>D / <leader>ih |
Line diagnostics / toggle inlay hints |
]h / [h / <leader>hs |
Next / previous / stage or unstage Git hunk |
<leader>hp / <leader>hi / <leader>? |
Hunk popup / inline preview / local mappings |
LSP servers are listed in servers.lua.
Format-on-save uses Ruff for Python, lua_ls for Lua, gopls for Go and
rust-analyzer for Rust. Formatting failures do not block saving.
:FormatOnSaveToggle toggles formatting for the current buffer.
Edit mise.toml once to update the link installer, doctor and
uninstaller. Use "~/destination" = "repo/source" under [dotfiles]. Terminal entries use
profile variants. Preview the saved selection with
make links LINKS_FLAGS=--dry-run. Bootstrap uses the same selection
when applying links with mise dot apply.
Doctor derives commands from Brewfile and mise. For different executable names or multiple commands, annotate the package declaration:
ripgrep = "latest" # doctor: rg
node = "lts" # doctor: node npmBackend-qualified mise tools require # doctor:; # doctor: - means no CLI.
Brewfile also supports # doctor-file: for files relative to the Homebrew prefix
and # doctor-app: for app executables under /Applications or
~/Applications. See existing declarations for examples.
The inventory parser requires a real Python >=3.11 executable; it skips mise
shims to avoid triggering installations while reading inventories.
make uninstall UNINSTALL_FLAGS=--dry-run # Preview the removal plan
make uninstall # Apply after confirmation
make uninstall UNINSTALL_FLAGS=--links-only # Remove only managed configuration links
make uninstall UNINSTALL_FLAGS=--purge-data # Also delete application dataDefault cleanup removes all versions of mise tools declared here, installed
Brewfile packages/apps/fonts, managed links and Neovim/Starship caches. These
tools may also be used by other projects. --purge-data additionally deletes
Neovim data/state, WezTerm plugin data and cask data via --zap, potentially
including OrbStack VMs and containers. Back up needed data first.
--yes skips confirmation. Invalid cleanup paths are rejected; failed removal
stops later stages without rolling back completed steps. Homebrew dependency
checks remain enabled. Repository files, Homebrew, foreign configurations and
unmanaged installations are preserved.