mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-12-23 03:02:52 +01:00
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
|
||||
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user