Personal dotfiles managed with GNU Stow, shared across my Mac and one Debian VM.
This repo is the public version of the base setup I actually use across my machines.
The AI and agent-tooling layer lives separately in $HOME/dotfiles-ai, so this repo stays focused on the shell, editor, terminal, SSH, and macOS setup.
This repo keeps a deliberate split between:
- tracked base configs that show the shape of my setup
- local-only machine overlays that contain real host inventories, private endpoints, and host-specific state
Examples of that split:
- tracked:
ssh/.ssh/config - local-only:
~/.ssh/config.local - tracked: editor and terminal defaults
- local-only: machine-specific overrides and secrets
- macOS:
brew install stow - Debian:
sudo apt install stow
Each package mirrors the home directory structure:
package-name/
├── .config/package-name/ # XDG config
└── .local/ # Local files
The current setup is simple:
# macOS
just stow-macos
# → aerospace btop karabiner git nvim oh-my-posh ssh tmux zed zsh ghostty
# Debian VM
just stow-debian
# → btop git nvim oh-my-posh ssh tmux zshAdditional packages can be stowed manually as needed:
stow -t ~ macos# Clone the repository
git clone https://github.com/raphhgg/dotfiles.git "$HOME/dotfiles"
cd "$HOME/dotfiles"
# Install packages for your host
just stow-macos # macOS
just stow-debian # Debian VM
# Install Homebrew packages (macOS only)
just brew-install
- Real host inventories and internal SSH targets live in
~/.ssh/config.local, not in the tracked SSH config. - AI-specific Claude, Codex, and OpenCode configs live in the separate
dotfiles-airepo. - You should expect to adapt usernames, host aliases, and machine-local overrides if you borrow these configs.
If you are bootstrapping a new Mac, do not run the steps by hand one by one unless you need to debug something. Use the bootstrap script:
git clone https://github.com/raphhgg/dotfiles.git "$HOME/dotfiles"
cd "$HOME/dotfiles"
./bootstrap-macos.shThis will:
- install Xcode Command Line Tools if needed
- install Homebrew if needed
- install packages from the
Brewfile - stow the macOS dotfiles set
- apply macOS preferences with safer defaults
Manual restore items that still matter are listed in macos/MIGRATION_CHECKLIST.md.
# Create package directory
mkdir btop
# Add your config (maintaining home directory structure)
mkdir -p btop/.config/btop
cp ~/.config/btop/btop.conf btop/.config/btop/
# Install the package
stow btopSince stow creates symlinks, just edit files normally:
# Edit the file directly
nvim ~/.zshrc
# Or edit in the repo
nvim "$HOME/dotfiles/zsh/.zshrc"# Remove symlinks
stow -D zsh
# Remove package directory
rm -rf zsh/./scripts/sync.shThe Brewfile is the source of truth for macOS applications, development tools, fonts, and Mac App Store apps.
# Install all packages from Brewfile
just brew-install
# Or manually
brew bundle install# Update Brewfile with current packages (careful — this includes everything!)
just brew-dump
# Check what would be installed/removed
just brew-check
# Remove packages not in Brewfile
just brew-cleanupgit clone https://github.com/raphhgg/dotfiles.git "$HOME/dotfiles"
cd "$HOME/dotfiles"
# Bootstrap the machine
./bootstrap-macos.shIf stow complains about existing files:
# Back up existing file and retry
mv ~/.zshrc ~/.zshrc.backup
stow zshCheck for .DS_Store files which can cause stow conflicts on macOS — delete them before stowing.
Check if stow created the links:
ls -la ~ | grep "\->"
ls -la ~/.config/ | grep "\->"# Ensure GNU Stow is installed
brew install stow
# Install Homebrew packages
just brew-installstow --verbose --no-folding --simulate *