projects
/
grml-etc-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1d7811
)
zshrc: New prompt: Username in red for root
author
Frank Terbeck
<ft@grml.org>
Tue, 5 Mar 2013 00:24:33 +0000
(
01:24
+0100)
committer
Frank Terbeck
<ft@grml.org>
Tue, 5 Mar 2013 17:22:00 +0000
(18:22 +0100)
Signed-off-by: Frank Terbeck <ft@grml.org>
etc/zsh/zshrc
patch
|
blob
|
history
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
dde417e
..
0779644
100644
(file)
--- a/
etc/zsh/zshrc
+++ b/
etc/zsh/zshrc
@@
-1479,6
+1479,8
@@
if zrcautoload promptinit && promptinit 2>/dev/null ; then
zstyle ':prompt:grml:*:items:user' post ''
zstyle ':prompt:grml:*:items:path' post ' '
zstyle ':prompt:grml:right:setup' use-rprompt false
+ elif (( EUID != 0 )); then
+ zstyle ':prompt:grml:*:items:user' pre '%F{red}'
fi
else
print 'Notice: no promptinit available :('