mirror of
https://github.com/reonokiy/dotfiles.git
synced 2025-06-18 07:06:05 +02:00
remove container prompt on wsl
This commit is contained in:
parent
1adea02361
commit
dc3d93424b
1 changed files with 6 additions and 0 deletions
20
dot_config/starship.toml.tmpl
Normal file
20
dot_config/starship.toml.tmpl
Normal 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 }}
|
Loading…
Add table
Add a link
Reference in a new issue