From 4cb6c72b1a2a0e10da9dddb1e70150232de688af Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Tue, 24 Jan 2012 10:17:51 +0100 Subject: [Prompts] less intrusive zsh status managment --- 12_Prompts.zsh | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to '12_Prompts.zsh') 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 } -- cgit v1.2.3