summaryrefslogtreecommitdiff
path: root/themes/sunrise.zsh-theme
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2014-11-06 10:42:38 -0800
committerRobby Russell <robby@planetargon.com>2014-11-06 10:42:38 -0800
commit7f75bb90e326fdb39de37c14a0813e52801b1bba (patch)
tree14bc3e5448b5d2afc822bbe890a12864026dc6d4 /themes/sunrise.zsh-theme
parent7034b01cd10cebb2658f54aa07ac0ce5ee64e0e0 (diff)
parent95d795e8cad7d1a754dfad520309d7a41b69275f (diff)
downloadzsh-7f75bb90e326fdb39de37c14a0813e52801b1bba.tar.gz
zsh-7f75bb90e326fdb39de37c14a0813e52801b1bba.tar.bz2
zsh-7f75bb90e326fdb39de37c14a0813e52801b1bba.zip
Merge pull request #3223 from mcornella/use-special-vars
Use special variables where we can
Diffstat (limited to 'themes/sunrise.zsh-theme')
-rw-r--r--themes/sunrise.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/sunrise.zsh-theme b/themes/sunrise.zsh-theme
index 4bea20a1b..28befd01b 100644
--- a/themes/sunrise.zsh-theme
+++ b/themes/sunrise.zsh-theme
@@ -10,7 +10,7 @@ Y=$fg_no_bold[yellow]
B=$fg_no_bold[blue]
RESET=$reset_color
-if [ "$(whoami)" = "root" ]; then
+if [ "$USER" = "root" ]; then
PROMPTCOLOR="%{$R%}" PREFIX="-!-";
else
PROMPTCOLOR="" PREFIX="---";