From e72751e58146ffe12e05e61d99a7f1c771bb2de3 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Thu, 22 Dec 2011 10:52:56 +0100 Subject: [Prompt] Shows zdotdir/git status by prompt color --- 12_Prompts.zsh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/12_Prompts.zsh b/12_Prompts.zsh index a4c9f30..30ae9e9 100644 --- a/12_Prompts.zsh +++ b/12_Prompts.zsh @@ -332,10 +332,11 @@ two_lines_prompt () ZSH_STATUS=$(zsh_status) if ( echo $ZSH_STATUS | grep -q -- "-D1rTY-" ) then - echo -n $c_$prompt_colors[warning]$_c - toilet -f bigmono9 "D1rTY Zsh.." - echo $c_$prompt_colors[none]$_c - echo + set_prompt_colors "$color[black]" + #echo -n $c_$prompt_colors[warning]$_c + #toilet -f bigmono9 "D1rTY Zsh.." + #echo $c_$prompt_colors[none]$_c + #echo fi precmd() @@ -348,16 +349,15 @@ precmd() then if ! ( echo $NEW_STATUS | grep -q -- "-D1rTY-" ) then - echo -n $c_$prompt_colors[warning]$_c - echo -n "You should restart Zsh.." - echo $c_$prompt_colors[none]$_c + # You should restart Zsh + set_prompt_colors "38;5;54" fi + else if ( echo $ZSH_STATUS | grep -q -- "-D1rTY-" ) then - echo -n $c_$prompt_colors[warning]$_c - echo -n "Your Zsh working copy is not clean.." - echo $c_$prompt_colors[none]$_c + # Your Zsh working copy is not clean + set_prompt_colors "38;5;81" fi fi -- cgit v1.2.3