mirror of
https://github.com/Cornelicorn/bullet-train.zsh.git
synced 2025-12-06 11:50:38 +01:00
Merge pull request #27 from secrettriangle/status-root-color
Fixes root coloring to not affect other symbols within the status
This commit is contained in:
@@ -381,7 +381,7 @@ prompt_status() {
|
||||
symbols=()
|
||||
[[ $RETVAL -ne 0 && $BULLETTRAIN_STATUS_EXIT_SHOW != true ]] && symbols+="✘"
|
||||
[[ $RETVAL -ne 0 && $BULLETTRAIN_STATUS_EXIT_SHOW == true ]] && symbols+="✘ $RETVAL"
|
||||
[[ $UID -eq 0 ]] && symbols+="%{%F{yellow}%}⚡"
|
||||
[[ $UID -eq 0 ]] && symbols+="%{%F{yellow}%}⚡%f"
|
||||
[[ $(jobs -l | wc -l) -gt 0 ]] && symbols+="⚙"
|
||||
|
||||
if [[ -n "$symbols" && $RETVAL -ne 0 ]] then
|
||||
|
||||
Reference in New Issue
Block a user