remove container prompt on wsl

This commit is contained in:
reeink 2024-03-21 19:01:14 +08:00
parent 1adea02361
commit dc3d93424b
No known key found for this signature in database

View file

@ -0,0 +1,20 @@
# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'
# Inserts a blank line between shell prompts
add_newline = true
# Replace the '' symbol in the prompt with '➜'
[character] # The name of the module we are configuring is 'character'
success_symbol = '[\$](bold green)'
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 }}