.dotfiles/private_dot_config/chezmoi/chezmoi.toml.tmpl
tombdf 72b8e700ec
Update .config/chezmoi/chezmoi.toml
Update .config/fish/config.fish
Update scripts/shells.sh
Update utils/helpers.sh
Update utils/packages
2024-12-20 02:57:31 +01:00

59 lines
1.4 KiB
Cheetah

encryption = "age"
[age]
identity = "{{ .chezmoi.homeDir }}/.age/key.txt"
recipient = "age1w8ms9vszzf20ln5tmztwmmrseecjywh7k36rt0lcep62nqk76f7sa3l4pt"
[data]
hostname = {{ .chezmoi.hostname | quote }}
{{- if eq .chezmoi.os "linux" }}
{{- if (.chezmoi.kernel.osrelease | lower | contains "arch") }}
distro = "arch"
{{- end }}
{{- end }}
[diff]
{{- if lookPath "delta" }}
command = "delta"
pager = "delta"
{{- else }}
command = "diff"
pager = "less"
{{- end }}
[edit]
{{- if lookPath "nvim" }}
command = "nvim"
{{- else if lookPath "vim" }}
command = "vim"
{{- else }}
command = "nano"
{{- end }}
[git]
autoCommit = true
autoPush = true
commitMessageTemplatePath = "~/.gitmessage"
[git.commit]
gpgsign = true
signoff = true
[git.push]
followTags = true
{{- if stat (joinPath .chezmoi.sourceDir "hooks/pre-commit") }}
[git.hooks]
pre-commit = "{{ .chezmoi.sourceDir }}/hooks/pre-commit"
commit-msg = "{{ .chezmoi.sourceDir }}/hooks/commit-msg"
post-commit = "{{ .chezmoi.sourceDir }}/hooks/post-commit"
{{- end }}
[merge]
{{- if lookPath "nvim" }}
command = "nvim"
args = ["-d", "{{ "{{ .Destination }}" }}", "{{ "{{ .Source }}" }}", "{{ "{{ .Target }}" }}"]
{{- else if lookPath "vimdiff" }}
command = "vimdiff"
args = ["{{ "{{ .Destination }}" }}", "{{ "{{ .Source }}" }}", "{{ "{{ .Target }}" }}"]
{{- end }}