manage git with chezmoi

This commit is contained in:
js0ny 2025-10-20 03:44:56 +01:00
parent e3a0205724
commit 52b70819bf
19 changed files with 204 additions and 104 deletions

17
home/.chezmoi.toml.tmpl Normal file
View file

@ -0,0 +1,17 @@
{{/* https://github.com/twpayne/dotfiles/blob/master/home/.chezmoi.toml.tmpl */}}
{{- $headless := false -}}
{{/* darwin hostname hack */}}
{{- $hostname := .chezmoi.hostname -}}
{{- if eq .chezmoi.os "darwin" -}}
{{- $hostname := output "scutil" "--get" "LocalHostName" | trim -}}
{{- end -}}
sourceDir = "~/.dotfiles"
{{ $email := promptStringOnce . "email" "What is your email address" -}}
{{ $username := promptStringOnce . "username" "What is your username" -}}
[data]
email = {{ $email | quote }}
username = {{ $username | quote }}