summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@qosmos.com>2012-11-29 16:07:25 +0100
committerHugues Hiegel <hugues.hiegel@qosmos.com>2012-11-29 16:07:25 +0100
commit503340ee24eabd82d2f01ff6f97b3701d650ecc4 (patch)
treeac51a183656b47cfee2f2244684127461322a005
parent32f1c5b9e08c8fb3dcb9690b992f809fd0db051f (diff)
[Colors] Root’s got black in insane zsh.
-rw-r--r--12_Prompts.zsh7
1 files changed, 6 insertions, 1 deletions
diff --git a/12_Prompts.zsh b/12_Prompts.zsh
index 34cc088..92c986a 100644
--- a/12_Prompts.zsh
+++ b/12_Prompts.zsh
@@ -322,7 +322,12 @@ __two_lines_prompt ()
ZSH_STATUS=$(__zsh_status)
if ( echo $ZSH_STATUS | grep -q -- "-D1rTY-" )
then
- __set_prompt_colors "38;5;54"
+ if ( __privileged_user )
+ then
+ __set_prompt_colors "30"
+ else
+ __set_prompt_colors "38;5;14"
+ fi
echo
echo -n $c_$_prompt_colors[warning]$_c
#toilet -f bigmono9 "D1rTY Zsh.."