fix fish prompt coloring

This commit is contained in:
Never Gude 2026-03-20 21:58:33 +01:00
parent 36a800415b
commit b39e324adb
4 changed files with 8 additions and 18 deletions

View file

@ -34,14 +34,14 @@ colors.bright.magenta = '#d3869b'
colors.bright.cyan = '#8ec07c' colors.bright.cyan = '#8ec07c'
colors.bright.white = '#ebdbb2' colors.bright.white = '#ebdbb2'
colors.dim.black = '#928374' colors.dim.black = '#3c3836'
colors.dim.red = '#9d0006' colors.dim.red = '#9d0006'
colors.dim.green = '#79740e' colors.dim.green = '#79740e'
colors.dim.yellow = '#b57614' colors.dim.yellow = '#b57614'
colors.dim.blue = '#076678' colors.dim.blue = '#076678'
colors.dim.magenta = '#8f3f71' colors.dim.magenta = '#8f3f71'
colors.dim.cyan = '#427b58' colors.dim.cyan = '#427b58'
colors.dim.white = '#3c3836' colors.dim.white = '#504945'
# [colors.search] # [colors.search]
colors.search.matches = { foreground = "#282828", background = "#fabd2f" } colors.search.matches = { foreground = "#282828", background = "#fabd2f" }

View file

@ -1,6 +1,6 @@
# [colors] # [colors]
colors.line_indicator = { foreground = "#3c3836", background = "#d5c4a1" } colors.line_indicator = { foreground = "#3c3836", background = "#d5c4a1" }
colors.footer_bar = { foreground = "#ebdbb2", background = "#d5c4a1" } colors.footer_bar = { foreground = "#3c3836", background = "#d5c4a1" }
colors.selection = { text = "CellForeground", background = "#bdae93" } colors.selection = { text = "CellForeground", background = "#bdae93" }
# Default colors # Default colors
@ -34,14 +34,14 @@ colors.bright.magenta = '#8f3f71'
colors.bright.cyan = '#427b58' colors.bright.cyan = '#427b58'
colors.bright.white = '#3c3836' colors.bright.white = '#3c3836'
colors.dim.black = '#928374' colors.dim.black = '#ebdbb2'
colors.dim.red = '#fb4934' colors.dim.red = '#fb4934'
colors.dim.green = '#b8bb26' colors.dim.green = '#b8bb26'
colors.dim.yellow = '#fabd2f' colors.dim.yellow = '#fabd2f'
colors.dim.blue = '#83a598' colors.dim.blue = '#83a598'
colors.dim.magenta = '#d3869b' colors.dim.magenta = '#d3869b'
colors.dim.cyan = '#8ec07c' colors.dim.cyan = '#8ec07c'
colors.dim.white = '#ebdbb2' colors.dim.white = '#d5c4a1'
# [colors.search] # [colors.search]
colors.search.matches = { foreground = "#fbf1c7", background = "#b57614" } colors.search.matches = { foreground = "#fbf1c7", background = "#b57614" }

View file

@ -3,21 +3,11 @@ function fish_prompt
set -g VIRTUAL_ENV_DISABLE_PROMPT true set -g VIRTUAL_ENV_DISABLE_PROMPT true
end end
set colorscheme (dconf read /org/gnome/desktop/interface/color-scheme) set_color white --background=brwhite --dim --reverse
if test $colorscheme = '\'prefer-light\''
set_color brwhite --background d5c4a1
else
set_color brwhite --background 504945
end
set -g __fish_git_prompt_show_informative_status true set -g __fish_git_prompt_show_informative_status true
printf '%s' (fish_git_prompt " %s ") printf '%s' (fish_git_prompt " %s ")
if test $colorscheme = '\'prefer-light\'' set_color black --background=white --dim --reverse
set_color white --background ebdbb2
else
set_color white --background 3c3836
end
printf ' %s ' (prompt_pwd -D 8) printf ' %s ' (prompt_pwd -D 8)
echo echo

View file

@ -3,7 +3,7 @@ font=sans-serif
default-timeout=5000 default-timeout=5000
layer=overlay layer=overlay
anchor=top-center anchor=top-right
margin=12 margin=12
padding=8 padding=8