chezmoi toml controlled prompt palette

This commit is contained in:
Lockszmith (VAST@MacBook) 2025-05-02 09:20:22 -04:00
parent 6ad448f78a
commit 07018c13f8
2 changed files with 77 additions and 60 deletions

View file

@ -30,6 +30,8 @@
) ( output "sh" "-c" "git config user.name || true"
) ( list .chezmoi.username " (@" $sysname ")" | join ""
)) -}}
{{- $promptStyle := get (get . "style" | default .) "prompt" | default "cool" -}}
{{- $promptStyle = promptString "Prompt style (cool/hot/lux)" $promptStyle -}}
{{- $scriptTempDir := or ( get . "sz.os.scriptTempDir" ) ( env "CZ_SCRIPT_TEMPDIR" ) -}}
{{- $chassisType := or ( get . "sz.os.chassisType" ) ( env "CZ_CHASSIS" ) -}}
@ -107,6 +109,11 @@ scriptTempDir={{ $scriptTempDir | quote }}
GITHUB_ACCESS_TOKEN={{- $githubToken | quote }}
GITHUB_TOKEN={{- $githubToken | quote }}
[style]
{{- if ($promptStyle) }}
prompt={{- $promptStyle | quote }}
{{- end }}
[diff]
# command = "nvim"
# args = ["-d", "{{ "{{ .Destination }}" }}", "{{ "{{ .Target }}" }}"]