Skip to content

Commit

Permalink
zshrc: New prompt: Username in red for root
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Terbeck <ft@grml.org>
  • Loading branch information
ft committed Mar 5, 2013
1 parent c1d7811 commit c875d64
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions etc/zsh/zshrc
Expand Up @@ -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 :('
Expand Down

0 comments on commit c875d64

Please sign in to comment.