dotfiles/.chezmoi.toml.tmpl
2023-02-26 23:48:36 +08:00

39 lines
880 B
Cheetah

{{- $email := "" -}}
{{- if hasKey . "email" -}}
{{- $email = .email -}}
{{- else -}}
{{- $email = promptString "email" -}}
{{ end }}
{{- $gitUser := "" -}}
{{- if hasKey . "gitUser" -}}
{{- $gitUser = .gitUser -}}
{{- else -}}
{{- $gitUser = promptString "gitUser" -}}
{{- end -}}
{{- $jsLinter := promptString "jsLinter" "standard" -}}
{{- if eq $jsLinter "" -}}
{{- $jsLinter = "standard" -}}
{{- end -}}
{{- $jsFixer := promptString "jsFixer" "standard" -}}
{{- if eq $jsFixer "" -}}
{{- $jsFixer = "standard" -}}
{{- end -}}
{{- $installGo := promptBool "installGo" true -}}
{{- $installNode := promptBool "installNode" true -}}
[data.gitconfig]
email = {{ $email | quote }}
username = {{ $gitUser | quote }}
[data.nvim]
js_linter = {{ $jsLinter | quote }}
js_fixer = {{ $jsFixer | quote }}
[data.dev]
golang = {{ $installGo }}
nodejs = {{ $installNode }}