My personal dotfiles managed elegantly and securely with GNU Stow.
- zsh: Environment and aliases (
.zshrc,.zshenv,.zprofile) - spaceship: My terminal prompt theme settings
- kitty: GPU-accelerated terminal emulator configuration
- herdr: Terminal workspace manager for AI agents configs
- zed: Ultra-fast code editor settings
- git: Global git configuration and identity
If you (or I in the future) need to set up a new Mac from scratch, follow these steps:
First, ensure git and stow are installed:
# macOS (using Homebrew)
brew install git stowClone this repository into your home directory:
git clone https://github.com/Henric234/dotfiles.git ~/dotfiles
cd ~/dotfilesUse stow to safely create the symbolic links for all the configurations back into your home folder:
stow zsh
stow spaceship
stow kitty
stow herdr
stow zed
stow git(Note: Stow will safely refuse to link a file if a real file with the same name already exists in the target location. You may need to delete or backup the default config files first).
To add a new tool (e.g., nvim) to this dotfiles setup, just follow the Stow pattern:
- Create the folder structure:
mkdir -p ~/dotfiles/nvim/.config/nvim - Move the original file:
mv ~/.config/nvim/init.lua ~/dotfiles/nvim/.config/nvim/ - Stow it:
cd ~/dotfiles && stow nvim - Git push:
git add . && git commit -m "docs: add nvim" && git push