dotfiles/home/.chezmoi.toml.tmpl

45 lines
1.2 KiB
Cheetah
Raw Normal View History

2023-02-25 16:18:35 +00:00
{{- $email := "" -}}
{{- if hasKey . "email" -}}
{{- $email = .email -}}
{{- else -}}
2023-03-04 10:35:16 +00:00
{{- $email = promptStringOnce . "email" "email address" -}}
2023-02-25 16:18:35 +00:00
{{ end }}
{{- $gitUser := "" -}}
{{- if hasKey . "gitUser" -}}
{{- $gitUser = .gitUser -}}
{{- else -}}
2023-03-04 10:35:16 +00:00
{{- $gitUser = promptStringOnce . "gitUser" "git username" -}}
2023-02-25 16:18:35 +00:00
{{- end -}}
2023-03-04 10:35:16 +00:00
{{- $jsLinter := promptStringOnce . "jsLinter" "js linter" "standard" -}}
2023-02-25 16:18:35 +00:00
{{- if eq $jsLinter "" -}}
{{- $jsLinter = "standard" -}}
{{- end -}}
2023-03-04 10:35:16 +00:00
{{- $jsFixer := promptStringOnce . "jsFixer" "js fixer" "standard" -}}
2023-02-25 16:18:35 +00:00
{{- if eq $jsFixer "" -}}
{{- $jsFixer = "standard" -}}
{{- end -}}
2023-03-04 10:35:16 +00:00
{{- $installGo := promptBoolOnce . "installGo" "install golang bin" true -}}
{{- $installNode := promptBoolOnce . "installNode" "install nodejs bin" true -}}
{{- $installRust := promptBoolOnce . "installRust" "install rust bin" true -}}
{{- $enableTmux := promptBoolOnce . "enableTmux" "install enable tmux autostart" true -}}
2023-02-26 16:08:31 +00:00
[data.shell]
tmux = {{ $enableTmux }}
2023-02-26 15:48:36 +00:00
2023-02-25 16:18:35 +00:00
[data.gitconfig]
email = {{ $email | quote }}
username = {{ $gitUser | quote }}
[data.nvim]
js_linter = {{ $jsLinter | quote }}
js_fixer = {{ $jsFixer | quote }}
2023-02-26 15:48:36 +00:00
[data.dev]
golang = {{ $installGo }}
nodejs = {{ $installNode }}
2023-02-26 15:54:56 +00:00
rust = {{ $installRust }}