From dc3d93424b223a695379ba9244737247838d6bd0 Mon Sep 17 00:00:00 2001 From: reeink Date: Thu, 21 Mar 2024 19:01:14 +0800 Subject: [PATCH] remove container prompt on wsl --- dot_config/{starship.toml => starship.toml.tmpl} | 6 ++++++ 1 file changed, 6 insertions(+) rename dot_config/{starship.toml => starship.toml.tmpl} (69%) diff --git a/dot_config/starship.toml b/dot_config/starship.toml.tmpl similarity index 69% rename from dot_config/starship.toml rename to dot_config/starship.toml.tmpl index 90cc14e..72d822e 100644 --- a/dot_config/starship.toml +++ b/dot_config/starship.toml.tmpl @@ -11,4 +11,10 @@ error_symbol = '[\$](bold red)' # Disable the package module, hiding it from the prompt completely [package] +disabled = false + +{{ if and (eq .chezmoi.os "linux") (.chezmoi.kernel.osrelease | lower | contains "microsoft") }} +# In WSL, disable container option to avoid `[Docker]` prompt. +[container] disabled = true +{{ end }}