Machine setup using chezmoi. These are personal notes 'cause I forget things.
macOS:
Prerequisites:
- Install Homebrew, get it setup for ZSH just long enough to install chezmoi.
export OP_SERVICE_ACCOUNT_TOKEN="<TOKEN>"
Install and apply:
brew install chezmoi
chezmoi init https://github.com/aahoughton/dotfiles.git
chezmoi applyLinux:
Prerequisites:
sudo apt-get update
sudo apt-get install -y curl sudo zip unzipInstall and apply:
sh -c "$(curl -fsLS get.chezmoi.io)" -- -b "$HOME/.local/bin"
export PATH="$HOME/.local/bin:$PATH"
chezmoi init https://github.com/aahoughton/dotfiles.git
chezmoi applyThis installs packages and deploys configs; SSH keys and AWS credentials get templated from 1Password.
General
Update the chezmoi git origin to use ssh instead of https:
chezmoi git config remote.origin.url "git@github.com:aahoughton/dotfiles.git"macOS:
Set Fish as the default shell:
echo "$(brew --prefix)/bin/fish" | sudo tee -a /etc/shells
chsh -s "$(brew --prefix)/bin/fish"Linux:
echo /usr/bin/fish | sudo tee -a /etc/shells
chsh -s /usr/bin/fishIntelliJ note: turn off shell integration in terminal settings.
Package lists are in .chezmoidata/packages.yaml. The install scripts (run_onchange_*-install-packages.sh.tmpl) will re-run when that file changes.
Commit from the source directory:
cd ~/.local/share/chezmoi
git add -A && git commit && git push- mise handles language versions and automatically.
- uv for python venvs (
uv venv)