mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
manage git with chezmoi
This commit is contained in:
parent
e3a0205724
commit
52b70819bf
19 changed files with 204 additions and 104 deletions
17
home/.chezmoi.toml.tmpl
Normal file
17
home/.chezmoi.toml.tmpl
Normal 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 }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue