(starship): Quote pretty name.
Otherwise it does not work, if braces are in the string.
This commit is contained in:
parent
45654783a0
commit
ac42682364
@ -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)"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user