My dotfiles managed by chezmoi.
Install them with:
chezmoi init --apply AjayKMehtaSubsequently, use this to get latest changes from this repo:
chezmoi updateIf you just want to pull latest changes and see what happens:
chezmoi git pull -- --autostash --rebase && chezmoi diffIf the changes are OK, you can then:
chezmoi applyTo see difference between source and target directories: chezmoi diff.
To add changes from target directory, use chezmoi add
# Need --template here because source file is template using variables!
chezmoi add --template ~/.gitconfigAfter reviewing changes, please feel free to commit changes.
Check config:
chezmoi dump-configVerify template:
cat ~/.local/share/chezmoi/.chezmoi.toml.tmpl | chezmoi execute-template --init --promptString gpgrecipient='TEST'See data:
chezmoi data👉 Stack config file is not in ~/ but I created a link.
New-Item -Path ~\.stack\config.yaml -Value D:\sr\config.yaml -ItemType SymbolicLink
chezmoi add --template --follow ~\.stack\config.yaml