-
Clone your dotfiles repository:
git clone <your-repo-url> ~/code/dotfiles cd ~/code/dotfiles
-
Run the installation script:
./scripts/bin/dotfiles-install
This will:
- Create
~/.dotfilessymlink pointing to your dotfiles directory - Symlink
~/.zshrcto your dotfiles.zshrc - Symlink
~/.gitconfigto your git configuration - Make scripts in
scripts/bin/executable - Backup any existing files to
~/.dotfiles-backup-<timestamp>/
- Create
-
Restart your terminal or reload configuration:
source ~/.zshrc
-
Install Homebrew packages (optional):
brew bundle --file=~/.dotfiles/brew/.Brewfile
If you want to manually load the dotfiles instead of using the install script, add this to your ~/.zshrc:
# Load dotfiles
if [ -f ~/.dotfiles/.zshrc ]; then
source ~/.dotfiles/.zshrc
fiCreate ~/.zshrc.local for machine-specific settings:
# Copy the example file
cp ~/.dotfiles/.zshrc.local.example ~/.zshrc.local
# Edit with your local settings
$EDITOR ~/.zshrc.localThis file is not version controlled and will be loaded automatically.
After running the install script, your home directory will have:
~/.zshrc→ symlink to~/.dotfiles/.zshrc~/.gitconfig→ symlink to~/.dotfiles/git/.gitconfig~/.dotfiles→ symlink to your dotfiles directory
~/.dotfiles/
├── .zshrc # Main zsh config
├── zsh/ # Modular zsh files
├── git/ # Git configuration
├── brew/ # Homebrew packages
├── ai/ # AI workflows
└── scripts/bin/ # Utility scripts
To update your dotfiles:
cd ~/.dotfiles
git pull
source ~/.zshrcTo remove the dotfiles:
# Remove symlinks
rm ~/.zshrc ~/.gitconfig ~/.dotfiles
# Restore backups if needed
# Backup files are in ~/.dotfiles-backup-<timestamp>/