(starship): Quote pretty name.

Otherwise it does not work, if braces are in the string.
This commit is contained in:
Heavy 2024-11-05 20:30:20 +01:00
parent 45654783a0
commit ac42682364

View File

@ -91,9 +91,9 @@ format = '[[ $symbol($version)](fg:#769ff0 bg:#212736)]($style)'
[custom.os] [custom.os]
{{ if eq .chezmoi.os "linux" }} {{ if eq .chezmoi.os "linux" }}
command = 'echo {{ .chezmoi.osRelease.prettyName }}' command = 'echo "{{ .chezmoi.osRelease.prettyName }}"'
{{ else if eq .chezmoi.os "windows" }} {{ else if eq .chezmoi.os "windows" }}
command = 'echo {{ .chezmoi.windowsVersion.productName }}' command = 'echo "{{ .chezmoi.windowsVersion.productName }}"'
{{ end }} {{ end }}
when = true when = true
format = "[$output]($style)" format = "[$output]($style)"