mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-16 17:50:09 +00:00
The longstatus-Segment should deactivate the foreground color after it is finished printing the content.
This commit is contained in:
parent
ef72eca288
commit
1eec2257fb
1 changed files with 4 additions and 4 deletions
|
@ -662,15 +662,15 @@ prompt_longstatus() {
|
||||||
symbols=()
|
symbols=()
|
||||||
|
|
||||||
if [[ "$RETVAL" -ne 0 ]]; then
|
if [[ "$RETVAL" -ne 0 ]]; then
|
||||||
symbols+="%F{226}%? ↵"
|
symbols+="%F{226}%? ↵%f"
|
||||||
bg="009"
|
bg="009"
|
||||||
else
|
else
|
||||||
symbols+="%{%F{"046"}%}$(print_icon 'OK_ICON')"
|
symbols+="%F{046}$(print_icon 'OK_ICON')%f"
|
||||||
bg="008"
|
bg="008"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[[ "$UID" -eq 0 ]] && symbols+="%{%F{yellow}%} $(print_icon 'ROOT_ICON')"
|
[[ "$UID" -eq 0 ]] && symbols+="%F{yellow} $(print_icon 'ROOT_ICON')%f"
|
||||||
[[ $(jobs -l | wc -l) -gt 0 ]] && symbols+="%{%F{cyan}%}$(print_icon 'BACKGROUND_JOBS_ICON')"
|
[[ $(jobs -l | wc -l) -gt 0 ]] && symbols+="%F{cyan}$(print_icon 'BACKGROUND_JOBS_ICON')%f"
|
||||||
|
|
||||||
[[ -n "$symbols" ]] && $1_prompt_segment "$0" "$bg" "$DEFAULT_COLOR" "$symbols"
|
[[ -n "$symbols" ]] && $1_prompt_segment "$0" "$bg" "$DEFAULT_COLOR" "$symbols"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue