Dotfiles and scripts managed with Chezmoi.
If this is the first time setting up a machine, these are the steps needed to setup the dotfiles.
On Windows:
winget install twpayne.chezmoi
chezmoi init https://github.com/jnonino/dotfiles.git
chezmoi diff
chezmoi apply -v
On MacOS:
sh -c "$(curl -fsLS get.chezmoi.io)" -- -b $HOME/bin
chezmoi init https://github.com/jnonino/dotfiles.git
chezmoi diff
chezmoi apply -v
On Linux:
sh -c "$(curl -fsLS get.chezmoi.io)" -- -b $HOME/.local/bin
chezmoi init https://github.com/jnonino/dotfiles.git
chezmoi diff
chezmoi apply -v
On Windows Linux Subsystem (WSL):
sh -c "$(curl -fsLS get.chezmoi.io)"
chezmoi init https://github.com/jnonino/dotfiles.git
chezmoi diff
chezmoi apply -v
These are some common tasks to perform with Chezmoi.
Pull the latest changes from the repository to see what would change, without applying the changes.
chezmoi git pull -- --autostash --rebase
chezmoi diff
Check for differences and apply changes.
If the changes are ok, then run this command to apply.
chezmoi diff
chezmoi apply
Pull the latest changes from the repository and apply them.
$ chezmoi update
Internally it runs chezmoi git pull -- --autostash --rebase
and chezmoi apply