Fix fish prompt colors: remove # prefix from hex codes
Fish set_color takes bare hex (394b70) not CSS-style (#394b70). All color references were silently failing, causing broken rendering. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d3af3052a1
commit
b774869b0d
1 changed files with 10 additions and 10 deletions
|
|
@ -63,24 +63,24 @@
|
||||||
|
|
||||||
# --- Line 1: powerline segments ---
|
# --- Line 1: powerline segments ---
|
||||||
# Left round cap + NixOS icon
|
# Left round cap + NixOS icon
|
||||||
set_color #394b70
|
set_color 394b70
|
||||||
printf ""
|
printf ""
|
||||||
set_color #7dcfff -b #394b70
|
set_color 7dcfff -b 394b70
|
||||||
printf " "
|
printf " "
|
||||||
|
|
||||||
# Arrow transition: nix -> hostname
|
# Arrow transition: nix -> hostname
|
||||||
set_color #394b70 -b #e0af68
|
set_color 394b70 -b e0af68
|
||||||
printf ""
|
printf ""
|
||||||
set_color #1a1b26 -b #e0af68
|
set_color 1a1b26 -b e0af68
|
||||||
printf " %s " (hostname)
|
printf " %s " (hostname)
|
||||||
|
|
||||||
# Path segments - each folder gets its own color
|
# Path segments - each folder gets its own color
|
||||||
set -l realhome (string escape --style=regex -- $HOME)
|
set -l realhome (string escape --style=regex -- $HOME)
|
||||||
set -l rawpath (string replace -r "^$realhome" "~" $PWD)
|
set -l rawpath (string replace -r "^$realhome" "~" $PWD)
|
||||||
set -l parts (string split "/" $rawpath)
|
set -l parts (string split "/" $rawpath)
|
||||||
set -l path_colors #41a6b5 #9ece6a #7aa2f7
|
set -l path_colors 41a6b5 9ece6a 7aa2f7
|
||||||
|
|
||||||
set -l prev_bg #e0af68
|
set -l prev_bg e0af68
|
||||||
set -l seg_count 0
|
set -l seg_count 0
|
||||||
|
|
||||||
for part in $parts
|
for part in $parts
|
||||||
|
|
@ -92,7 +92,7 @@
|
||||||
# Arrow from previous segment
|
# Arrow from previous segment
|
||||||
set_color $prev_bg -b $seg_bg
|
set_color $prev_bg -b $seg_bg
|
||||||
printf ""
|
printf ""
|
||||||
set_color #1a1b26 -b $seg_bg
|
set_color 1a1b26 -b $seg_bg
|
||||||
printf " %s " $part
|
printf " %s " $part
|
||||||
|
|
||||||
set prev_bg $seg_bg
|
set prev_bg $seg_bg
|
||||||
|
|
@ -102,11 +102,11 @@
|
||||||
# Git branch (if in a repo)
|
# Git branch (if in a repo)
|
||||||
set -l branch (command git branch --show-current 2>/dev/null)
|
set -l branch (command git branch --show-current 2>/dev/null)
|
||||||
if test -n "$branch"
|
if test -n "$branch"
|
||||||
set_color $prev_bg -b #bb9af7
|
set_color $prev_bg -b bb9af7
|
||||||
printf ""
|
printf ""
|
||||||
set_color #1a1b26 -b #bb9af7
|
set_color 1a1b26 -b bb9af7
|
||||||
printf " %s " $branch
|
printf " %s " $branch
|
||||||
set prev_bg #bb9af7
|
set prev_bg bb9af7
|
||||||
end
|
end
|
||||||
|
|
||||||
# Final arrow to terminal bg
|
# Final arrow to terminal bg
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue