How I manage dotfiles

How I manage dotfiles

Part of the [[10 minute devops]] series
Chezmoi

~/.config/chezmoi/chezmoi.toml:

[data]
environment = "work"
power = "battery"

Dotfiles live under ~/.local/share/chezmoi/

Templates look like:

[user]
    name = Ray Tran
    {{- if eq .environment "home" }}
    email = "ray@xxxxxx.co.uk"
    signingkey = 12CXXXXXXXXXXXXXXXXXXXXXXXXEC5F0F082D346
    {{- else if eq .environment "work" }}
    email = rt@xxxxxx.co.uk
    signingkey = 41FF3939XXXXXXXXXXXXXX778E4EC24F4032CEA3
    {{- end }}
Powered by Forestry.md