Better structure: The right prompt should deactivate the foreground color, after it is finished printing the content.
This commit is contained in:
parent
3da637cfd6
commit
ef72eca288
|
@ -417,8 +417,8 @@ right_prompt_segment() {
|
|||
local bg fg
|
||||
[[ -n $2 ]] && bg="%K{$2}" || bg="%k"
|
||||
[[ -n $3 ]] && fg="%F{$3}" || fg="%f"
|
||||
echo -n "%f%F{$2}$(print_icon 'RIGHT_SEGMENT_SEPARATOR')%f%{$bg%}%{$fg%} "
|
||||
[[ -n $4 ]] && echo -n "$4 "
|
||||
echo -n "%F{$2}$(print_icon 'RIGHT_SEGMENT_SEPARATOR')%f%{$bg%}%{$fg%} "
|
||||
[[ -n $4 ]] && echo -n "$4 %f"
|
||||
}
|
||||
|
||||
################################################################
|
||||
|
|
Loading…
Reference in New Issue