This is how I bootstrap my machines
-
Install
chezmoi
sh -c "$(curl -fsLS chezmoi.io/get)"
-
Initialize this repository with
chezmoi
.chezmoi --source ~/.config/chezmoi-public --cache ~/.cache/chezmoi-public --refresh-externals init --apply https://github.com/justmiles/dotfiles.git
-
Add the following to your .zshrc
autoload -U +X compinit && compinit autoload -U +X bashcompinit && bashcompinit for f in $(find ~/.bashrc.d -type f | sort ); do source $f || echo "[$f] could not load - exit code $?" done
To update the latest, just run chezmoi-public update
By default, chezmoi apply
will bootstrap a machine with software. This is an idempotent process and won't
re-install software that is already installed. To update everything (or force re-install) manually, run FORCE_REINSTALL=y chezmoi apply
.
To run updates against individual bootstrapping scripts, run FORCE_REINSTALL=y ~/.local/share/bootstrapping/SCRIPT.sh
To install these scripts without bootstrapping, run
chezmoi --exclude scripts --source ~/.config/chezmoi-public --cache ~/.cache/chezmoi-public --refresh-externals init --apply https://github.com/justmiles/dotfiles.git