From ac42682364cb3b6ed0cab3e3b8baa8836bcc07b7 Mon Sep 17 00:00:00 2001 From: Heavy Date: Tue, 5 Nov 2024 20:30:20 +0100 Subject: [PATCH] (starship): Quote pretty name. Otherwise it does not work, if braces are in the string. --- private_dot_config/starship.toml.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/private_dot_config/starship.toml.tmpl b/private_dot_config/starship.toml.tmpl index a5f5e55..1ef2b6c 100644 --- a/private_dot_config/starship.toml.tmpl +++ b/private_dot_config/starship.toml.tmpl @@ -91,9 +91,9 @@ format = '[[ $symbol($version)](fg:#769ff0 bg:#212736)]($style)' [custom.os] {{ if eq .chezmoi.os "linux" }} -command = 'echo {{ .chezmoi.osRelease.prettyName }}' +command = 'echo "{{ .chezmoi.osRelease.prettyName }}"' {{ else if eq .chezmoi.os "windows" }} -command = 'echo {{ .chezmoi.windowsVersion.productName }}' +command = 'echo "{{ .chezmoi.windowsVersion.productName }}"' {{ end }} when = true format = "[$output]($style)"