zshrc: Use green for normal user and red for root.
This commit is contained in:
parent
c0d33277d0
commit
5d580458cd
5
zshrc
5
zshrc
|
@ -5,9 +5,10 @@ echo "Please see the README file."
|
||||||
# Set up the prompt
|
# Set up the prompt
|
||||||
|
|
||||||
autoload -Uz promptinit
|
autoload -Uz promptinit
|
||||||
|
# Green for normal user and red for root. Thanks nyuszika7h :D
|
||||||
promptinit
|
promptinit
|
||||||
PS1="%B%F{green}%n@%m %~
|
PS1="%B%(!.%F{red}.%F{green})%n@%m %~
|
||||||
%# %f%b"
|
%#%f%b "
|
||||||
|
|
||||||
setopt histignorealldups sharehistory
|
setopt histignorealldups sharehistory
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue