mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2025-06-13 13:03:54 +00:00
Merge f79440d374
into 9b414bc6fb
This commit is contained in:
commit
59ef3df542
@ -223,19 +223,18 @@ function __bobthefish_start_segment -S -d 'Start a prompt segment'
|
|||||||
set -l fg $argv[1]
|
set -l fg $argv[1]
|
||||||
set -e argv[1]
|
set -e argv[1]
|
||||||
|
|
||||||
set_color normal # clear out anything bold or underline...
|
|
||||||
set_color -b $bg
|
|
||||||
set_color $fg $argv
|
|
||||||
|
|
||||||
switch "$__bobthefish_current_bg"
|
switch "$__bobthefish_current_bg"
|
||||||
case ''
|
case ''
|
||||||
# If there's no background, just start one
|
# If there's no background, just start one
|
||||||
|
set_color -b $bg
|
||||||
|
set_color $fg $argv
|
||||||
echo -n ' '
|
echo -n ' '
|
||||||
case "$bg"
|
case "$bg"
|
||||||
# If the background is already the same color, draw a separator
|
# If the background is already the same color, draw a separator
|
||||||
echo -ns $__bobthefish_right_arrow_glyph ' '
|
echo -ns $__bobthefish_right_arrow_glyph ' '
|
||||||
case '*'
|
case '*'
|
||||||
# otherwise, draw the end of the previous segment and the start of the next
|
# otherwise, draw the end of the previous segment and the start of the next
|
||||||
|
set_color -b $bg
|
||||||
set_color $__bobthefish_current_bg
|
set_color $__bobthefish_current_bg
|
||||||
echo -ns $__bobthefish_right_black_arrow_glyph ' '
|
echo -ns $__bobthefish_right_black_arrow_glyph ' '
|
||||||
set_color $fg $argv
|
set_color $fg $argv
|
||||||
|
Loading…
Reference in New Issue
Block a user