diff options
author | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2012-01-24 10:17:51 +0100 |
---|---|---|
committer | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2012-01-24 10:17:51 +0100 |
commit | 4cb6c72b1a2a0e10da9dddb1e70150232de688af (patch) | |
tree | 3b89260e164f37ee202d89e2214736221800a256 /12_Prompts.zsh | |
parent | b5ba5329c7e2722d50266ecd25962a5b86a74cda (diff) |
[Prompts] less intrusive zsh status managment
Diffstat (limited to '12_Prompts.zsh')
-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 } |