summaryrefslogtreecommitdiff
path: root/12_Prompts.zsh
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@qosmos.com>2011-12-22 10:52:56 +0100
committerHugues Hiegel <hugues.hiegel@qosmos.com>2011-12-22 10:58:49 +0100
commite72751e58146ffe12e05e61d99a7f1c771bb2de3 (patch)
treec83ab1c77a4e0d5c73227f90b5b64cfef1f7b9f9 /12_Prompts.zsh
parent1dc18b3c1b7a66ea3d3c693adecc2c6d0f7ada0a (diff)
[Prompt] Shows zdotdir/git status by prompt color
Diffstat (limited to '12_Prompts.zsh')
-rw-r--r--12_Prompts.zsh20
1 files 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