This is a highly opinionated configuration setup that I’ve built over the years. It contains handy settings and tools that streamline my development environment. Feel free to use or modify it, but of course it's very customized to my preferences so might need tweaking to suit whatever you want.
To set everything up, follow these steps:
- Install Homebrew.
- Clone this repo (e.g. to
~/repos/config). - Copy
setup.cfg.templatetosetup.cfgand edit it with your personal configurations (e.g., Git name, email, etc.). - Read the
Brewfile(it runs as Ruby), then install the packages:brew bundle --file=Brewfile
- Run the setup script:
./setup.sh
- Install the tools pinned in the mise config:
mise install
This will create symbolic links for various configuration files and ensure that everything is in place. It’s safe to rerun the setup script, as it won’t overwrite existing settings without making backups.
If you update or modify any files, simply run the setup script again:
./setup.shThis will ensure that your configurations stay up to date.
Tools are split between two files:
Brewfile: system tools, GUI apps (casks), and editor extensions installed with Homebrew, e.g. Starship,gh, and Eternal Terminal.mise-global/config.toml: language runtimes (Node, Python, Ruby, Go, Deno) and version-pinned CLIs managed by mise.init.zshrunsmise activate.
setup.sh copies mise-global/config.toml to ~/.config/mise/config.toml only if that file doesn't exist yet. It copies rather than symlinks, so changes pulled into the repo never take effect without review. The machine copy is the source of truth, and syncing goes one way at a time.
The sync tasks live in the repo's mise.toml, which holds tasks only (no tools or settings). Trust it once with mise trust, then run the tasks from the repo root:
mise run dotfiles:exportcopies the machine's mise config into the repo and refreshes theBrewfilewithbrew bundle dump. Review and commit the result.mise run dotfiles:importshows the diff between the repo and machine configs and what theBrewfilewould install, then asks before copying the config and runningbrew bundle installandmise install.
The .vimrc file is included and customized with plugins and settings, including:
- NERDCommenter for easy commenting
- Solarized Color Scheme for enhanced readability
- CtrlP for fuzzy file search
The setup script will automatically install vim-plug and the necessary plugins.
You may want to modify the Vim bundles to suit your own preferences.
There are a few files and configurations that need to be linked manually:
- iTerm2: Use
./link-iterm2.shto link the library for opening new windows. - VSCode Settings: The
vscode-settings.jsonfile contains user settings for VSCode.
- ZSH: The setup script configures ZSH, including installing ZPlug and sourcing additional ZSH settings from
init.zsh. - Bash: Bash configuration is handled similarly, sourcing additional settings from
.bashrcadditions. - Starship Prompt: Starship is installed via Homebrew (see
Brewfile). The setup script links its configuration.
- Enable
xterm-256colorin your terminal settings if you are SSH’ing into remote machines. - For Solarized terminal support, install dircolors-solarized.
.tmux.confis kept for remote machines (e.g. a devbox reached withetc); it isn't linked locally.