From 5d580458cdf1b155fe8af4922f36cb1b6fabdf48 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Sat, 22 Oct 2011 20:44:51 +0300 Subject: [PATCH] zshrc: Use green for normal user and red for root. --- zshrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zshrc b/zshrc index fe6a628c..1beb369e 100644 --- a/zshrc +++ b/zshrc @@ -5,9 +5,10 @@ echo "Please see the README file." # Set up the prompt autoload -Uz promptinit +# Green for normal user and red for root. Thanks nyuszika7h :D promptinit -PS1="%B%F{green}%n@%m %~ -%# %f%b" +PS1="%B%(!.%F{red}.%F{green})%n@%m %~ +%#%f%b " setopt histignorealldups sharehistory