Cross-platform dotfiles powered by Chezmoi
Run the bootstrap script — it installs Xcode CLT, Homebrew, fish, chezmoi, and applies dotfiles in one shot:
curl -fsSL https://raw.githubusercontent.com/rishid/dotfiles/master/bootstrap-macos.sh | bashOr clone first and run locally:
git clone https://github.com/rishid/dotfiles.git /tmp/dotfiles
bash /tmp/dotfiles/bootstrap-macos.shNote: You'll need your age private key at
~/.config/chezmoi/key.txtto decrypt secrets. Copy it from another machine before running, or the script will prompt you.
# Fresh install
sh -c "$(curl -fsLS get.chezmoi.io)" -- init -S $HOME/.dotfiles --apply rishid
# Update (re-apply)
chezmoi update # or abbreviation: cu
chezmoi apply # or abbreviation: camise install # installs all tools from ~/.config/mise/config.tomlTo add encrypted config for a specific host (e.g., API keys):
# Create and encrypt hostname-specific fish config
chezmoi encrypt -o $(chezmoi source-path)/private_dot_config/fish/.encrypted-config.$(hostname).fish unencrypted-config.fishThe template at config.{{ .chezmoi.hostname }}.fish.tmpl will automatically decrypt and apply it.