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-04-05 15:29:58 +00:00
|
|
|
{{- $enableSSHAgent := promptBoolOnce . "enableSSHAgent" "install enable ssh agent autostart" true -}}
|
2023-06-23 06:53:33 +00:00
|
|
|
{{- $enableUI := promptBoolOnce . "enableUI" "install enable ui" true -}}
|
|
|
|
|
|
|
|
[data.ui]
|
|
|
|
enable = {{ $enableUI }}
|
2023-02-26 16:08:31 +00:00
|
|
|
|
|
|
|
[data.shell]
|
|
|
|
tmux = {{ $enableTmux }}
|
2023-04-05 15:29:58 +00:00
|
|
|
ssh_agent = {{ $enableSSHAgent }}
|
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 }}
|
2023-04-18 16:29:36 +00:00
|
|
|
|
|
|
|
[merge]
|
|
|
|
command = "nvim"
|
|
|
|
args = ["-d", "{{ "{{" }} .Destination {{ "}}" }}", "{{ "{{" }} .Source {{ "}}" }}", "{{ "{{" }} .Target {{ "}}" }}"]
|