.dotfiles/private_dot_config/chezmoi/chezmoi.toml.tmpl
tombdf 04fd30ca73
feat!: Alter most of major config files
- Bash: config file
- Zsh: config file
- Fish: config file and fish plugins
- Nvim: config files
- Kitty: config files
2025-01-03 00:39:01 +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 = false
autoPush = false
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 }}