/dotfiles-best

My dotfiles

Primary LanguagePowerShell

Latest commit

My dotfiles managed by chezmoi.

Install them with:

chezmoi init --apply AjayKMehta

Workflow

Subsequently, use this to get latest changes from this repo:

chezmoi update

If you just want to pull latest changes and see what happens:

chezmoi git pull -- --autostash --rebase && chezmoi diff

If the changes are OK, you can then:

chezmoi apply

To 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 ~/.gitconfig

After reviewing changes, please feel free to commit changes.

Troubleshooting

Check config:

chezmoi dump-config

Verify template:

cat ~/.local/share/chezmoi/.chezmoi.toml.tmpl | chezmoi execute-template --init --promptString gpgrecipient='TEST'

See data:

chezmoi data

Misc

👉 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