From: Frank Terbeck Date: Tue, 5 Mar 2013 00:24:33 +0000 (+0100) Subject: zshrc: New prompt: Username in red for root X-Git-Tag: v0.8.0~45 X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=c875d64b68ce86c7b3f3e6670d5f06a84d164013 zshrc: New prompt: Username in red for root Signed-off-by: Frank Terbeck --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index dde417e..0779644 100644 --- 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 :('