These are my dotfiles.
My dotfiles are managed by Chezmoi
sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply rharink
This command will pull the rharink/dotfiles repo and run chezmoi init
and apply
For setting up transitory environments (e.g. short-lived Linux containers) you can install chezmoi, install your dotfiles, and then remove all traces of chezmoi, including the source directory and chezmoi's configuration directory, with a single command:
sh -c "$(curl -fsLS get.chezmoi.io)" -- init --one-shot rharink
You can pull the changes from your repo and apply them in a single command:
chezmoi update
This runs git pull --autostash --rebase
in your source directory and then chezmoi apply.
Pull the latest changes from your repo and see what would change, without actually applying the changes
chezmoi git pull -- --autostash --rebase && chezmoi diff
If you're happy with the changes, then you can run
chezmoi apply
Run chezmoi edit
to open the chezmoi dir in $EDITOR
(nvim)
Run chezmoi re-add <files>
to add newer version of configuration files edited
outside of chezmoi edit
use chezmoi add <files>
to add files to chezmoi