zshrc: Use green for normal user and red for root.

This commit is contained in:
nyuszika7h 2011-10-22 20:44:51 +03:00 committed by Mika Suomalainen
parent c0d33277d0
commit 5d580458cd
1 changed files with 3 additions and 2 deletions

5
zshrc
View File

@ -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