From f79440d374c21ed3ac4207ff38233c169cbcb81d Mon Sep 17 00:00:00 2001 From: Vlad Frolov Date: Mon, 30 Jan 2017 14:21:05 +0200 Subject: [PATCH] Partially fixes #70: Improves interactive shell performance --- fish_prompt.fish | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fish_prompt.fish b/fish_prompt.fish index 7a6620c..214a3ef 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -200,19 +200,18 @@ function __bobthefish_start_segment -S -d 'Start a prompt segment' set -l fg $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" case '' # If there's no background, just start one + set_color -b $bg + set_color $fg $argv echo -n ' ' case "$bg" # If the background is already the same color, draw a separator echo -ns $__bobthefish_right_arrow_glyph ' ' case '*' # otherwise, draw the end of the previous segment and the start of the next + set_color -b $bg set_color $__bobthefish_current_bg echo -ns $__bobthefish_right_black_arrow_glyph ' ' set_color $fg $argv