Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .chezmoi.toml.tmpl
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{{- $gitName := promptStringOnce . "git_name" "Git user.name for ~/.gitconfig_local" "" -}}
{{- $gitEmail := promptStringOnce . "git_email" "Git user.email for ~/.gitconfig_local" "" -}}
{{- $githubUser := promptStringOnce . "github_user" "GitHub username for [github] user in ~/.gitconfig_local" "" -}}
{{- $machineName := promptStringOnce . "machine_name" "Machine name for ~/.name (prompts, tmux status)" .chezmoi.hostname -}}
mode = "symlink"

[data]
git_name = {{ $gitName | quote }}
git_email = {{ $gitEmail | quote }}
github_user = {{ $githubUser | quote }}
machine_name = {{ $machineName | quote }}
2 changes: 1 addition & 1 deletion dot_name.tmpl
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{{ .chezmoi.os }}
{{ (index . "machine_name") | default .chezmoi.hostname }}