chezmoi toml controlled prompt palette
This commit is contained in:
parent
6ad448f78a
commit
07018c13f8
2 changed files with 77 additions and 60 deletions
|
@ -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 }}" }}"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue