From 503340ee24eabd82d2f01ff6f97b3701d650ecc4 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Thu, 29 Nov 2012 16:07:25 +0100 Subject: [Colors] Root’s got black in insane zsh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 12_Prompts.zsh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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.." -- cgit v1.2.3