diff options
-rw-r--r-- | 12_Prompts.zsh | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/12_Prompts.zsh b/12_Prompts.zsh index 855fcbd..d322e05 100644 --- a/12_Prompts.zsh +++ b/12_Prompts.zsh @@ -339,6 +339,7 @@ two_lines_prompt () ZSH_STATUS=$(zsh_status) if ( echo $ZSH_STATUS | grep -q -- "-D1rTY-" ) then + set_prompt_colors "38;5;54" echo echo -n $c_$prompt_colors[warning]$_c #toilet -f bigmono9 "D1rTY Zsh.." @@ -367,19 +368,6 @@ precmd() # this MUST BE the real first operation else we lose the error code... error=$(print -Pn "%(?;;-%?)") - # d1RtY Zsh ... - ( echo $NEW_STATUS | grep -q -- "-D1rTY-" ) && set_prompt_colors "38;5;$(( $RANDOM % ( 88 - 16 ) + 16))" - - NEW_STATUS=$(zsh_status) - if ! ( echo $NEW_STATUS | grep -q -- "-D1rTY-" ) - then - if [ $NEW_STATUS != $ZSH_STATUS ] - then - # You should restart Zsh - set_prompt_colors "38;5;54" - fi - fi - update_prompt_elements redefine_prompt } |