Run this on a fresh Mac - no prerequisites required:
curl -fsSL https://raw.githubusercontent.com/nathandcornell/dotfiles/master/bootstrap.sh | bashThis will:
- Install Xcode Command Line Tools (if needed)
- Install Homebrew (if needed)
- Install Git (if needed)
- Clone this repository to
~/dotfiles - Initialize submodules
- Run the full setup
To install to a different location:
DOTFILES_DIR=~/my-dotfiles curl -fsSL https://raw.githubusercontent.com/nathandcornell/dotfiles/master/bootstrap.sh | bashIf you prefer to install manually or already have Git installed:
-
Clone this repo:
git clone https://github.com/nathandcornell/dotfiles.git ~/dotfiles -
Initialize submodules:
cd ~/dotfiles git submodule update --init --recursive
-
Run dependencies script (installs Homebrew, Git, Node, Python, Bun, etc.):
./dependencies.sh
-
Run setup script (links configs, installs brew packages, sets up vim):
./setup.sh
-
Create your git user config:
cp gitconfig-user.inc.example ~/.gitconfig-user.inc # Edit ~/.gitconfig-user.inc with your name and email
- Zsh configuration with Oh My Zsh
- Powerlevel10k theme
- Extensive aliases for git, docker, and common tasks
- FZF integration with ripgrep
- Vim/Neovim configuration with plugins (via vim submodule)
- Git configuration with useful aliases
- Homebrew packages (see
brew-packages)
cspr- Create pull requestflush-dns- Flush DNS cachemakeScratch- Create scratch files- And more...
For a more complete development environment, install additional packages:
xargs brew install < ~/dotfiles/brew-packages.local