starship / starship

☄🌌️ The minimal, blazing-fast, and infinitely customizable prompt for any shell!
https://starship.rs
ISC License
44.36k stars 1.93k forks source link

Conda section not using assigned color #5941

Closed Bicheng-G closed 5 months ago

Bicheng-G commented 5 months ago

Hello peers,

Could anyone please help me, is there anything wrong in my configuration?

Thank you for your kind attention.

pkg_version:1.18.2 branch: commit_hash: build_time:2024-03-29 15:41:58 +00:00 build_env:rustc 1.77.1 (7cf61ebde 2024-03-27) (Homebrew),

Generated bug report:

Current Behavior

The conda section is not respecting the assigned color, it looks like transparent background.

Expected Behavior

The conda section should use the assigned background color

Additional context/Screenshots

SCR-20240426-iroa

Possible Solution

No

Environment

Starship Configuration

"$schema" = 'https://starship.rs/config-schema.json'

format = """
[](rosewater)\
$os\
$username\
[](bg:red fg:rosewater)\
$directory\
[](fg:red bg:peach)\
$git_branch\
$git_status\
[](fg:peach bg:lavender)\
$c\
$rust\
$golang\
$nodejs\
$php\
$java\
$kotlin\
$haskell\
$python\
[](fg:lavender bg:blue)\
$docker_context\
$conda\
[](fg:blue bg:surface0)\
$time\
[ ](fg:surface0)\
$line_break$character"""

palette = 'catppuccin_mocha'

[palettes.gruvbox_dark]
color_fg0 = '#fbf1c7'
color_bg1 = '#3c3836'
color_bg3 = '#665c54'
color_blue = '#458588'
color_aqua = '#689d6a'
color_green = '#98971a'
color_orange = '#d65d0e'
color_purple = '#b16286'
color_red = '#cc241d'
color_yellow = '#d79921'

[palettes.catppuccin_mocha]
rosewater = "#f5e0dc"
flamingo = "#f2cdcd"
pink = "#f5c2e7"
orange = "#cba6f7"
red = "#f38ba8"
maroon = "#eba0ac"
peach = "#fab387"
yellow = "#f9e2af"
green = "#a6e3a1"
teal = "#94e2d5"
sky = "#89dceb"
sapphire = "#74c7ec"
blue = "#89b4fa"
lavender = "#b4befe"
text = "#cdd6f4"
subtext1 = "#bac2de"
subtext0 = "#a6adc8"
overlay2 = "#9399b2"
overlay1 = "#7f849c"
overlay0 = "#6c7086"
surface2 = "#585b70"
surface1 = "#45475a"
surface0 = "#313244"
base = "#1e1e2e"
mantle = "#181825"
crust = "#11111b"

[os]
disabled = false
style = "bg:rosewater fg:surface0"

[os.symbols]
Windows = "󰍲"
Ubuntu = "󰕈"
SUSE = ""
Raspbian = "󰐿"
Mint = "󰣭"
Macos = ""
Manjaro = ""
Linux = "󰌽"
Gentoo = "󰣨"
Fedora = "󰣛"
Alpine = ""
Amazon = ""
Android = ""
Arch = "󰣇"
Artix = "󰣇"
CentOS = ""
Debian = "󰣚"
Redhat = "󱄛"
RedHatEnterprise = "󱄛"

[username]
show_always = true
style_user = "bg:rosewater fg:surface0"
style_root = "bg:rosewater fg:surface0"
format = '[ $user ]($style)'

[directory]
style = "fg:surface0 bg:red"
format = "[ $path ]($style)"
truncation_length = 8
truncation_symbol = "…/"
home_symbol = ' '

[directory.substitutions]
"Documents" = "󰈙 "
"Downloads" = " "
"Music" = "󰝚 "
"Pictures" = " "
"Developer" = "󰲋 "
"Github" = " "
"dotfiles" = ".files"

[git_branch]
symbol = " "
style = "bg:teal"
format = '[[ $symbol $branch ](fg:surface0 bg:peach)]($style)'

[git_status]
style = "bg:teal"
format = '[[($all_status$ahead_behind )](fg:surface0 bg:peach)]($style)'

[nodejs]
symbol = ""
style = "bg:lavender"
format = '[[ $symbol( $version) ](fg:surface0 bg:lavender)]($style)'

[c]
symbol = " "
style = "bg:lavender"
format = '[[ $symbol( $version) ](fg:surface0 bg:lavender)]($style)'

[rust]
symbol = ""
style = "bg:lavender"
format = '[[ $symbol( $version) ](fg:surface0 bg:lavender)]($style)'

[golang]
symbol = ""
style = "bg:lavender"
format = '[[ $symbol( $version) ](fg:surface0 bg:lavender)]($style)'

[php]
symbol = ""
style = "bg:lavender"
format = '[[ $symbol( $version) ](fg:surface0 bg:lavender)]($style)'

[java]
symbol = " "
style = "bg:lavender"
format = '[[ $symbol( $version) ](fg:surface0 bg:lavender)]($style)'

[kotlin]
symbol = ""
style = "bg:lavender"
format = '[[ $symbol( $version) ](fg:surface0 bg:lavender)]($style)'

[haskell]
symbol = ""
style = "bg:lavender"
format = '[[ $symbol( $version) ](fg:surface0 bg:lavender)]($style)'

[python]
symbol = ""
style = "bg:lavender"
format = '[[ $symbol( $version) ](fg:surface0 bg:lavender)]($style)'

[docker_context]
symbol = ""
style = "bg:blue"
format = '[[ $symbol( $context) ](fg:#surface0 bg:blue)]($style)'

[conda]
style = "bg:blue"
format = '[[ $symbol( $environment) ](fg:#surface0 bg:blue)]($style)'
symbol = ""
ignore_base = true

[time]
disabled = false
time_format = "%R"
style = "bg:surface0"
format = '[[  $time ](fg:text bg:surface0)]($style)'

[line_break]
disabled = false

[character]
disabled = false
success_symbol = '[󱓞](bold fg:rosewater)'
error_symbol = '[󰑣](bold fg:red)'
vimcmd_symbol = '[](bold fg:creen)'
vimcmd_replace_one_symbol = '[](bold fg:purple)'
vimcmd_replace_symbol = '[](bold fg:purple)'
vimcmd_visual_symbol = '[](bold fg:lavender)'
Bicheng-G commented 5 months ago

Just realised that there was a typo in conda section, closing the issue.