summaryrefslogtreecommitdiff
path: root/themes/afowler.zsh-theme
diff options
context:
space:
mode:
Diffstat (limited to 'themes/afowler.zsh-theme')
-rw-r--r--themes/afowler.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/afowler.zsh-theme b/themes/afowler.zsh-theme
index b5a9bb173..3a4753fc1 100644
--- a/themes/afowler.zsh-theme
+++ b/themes/afowler.zsh-theme
@@ -1,4 +1,4 @@
-if [ "$(whoami)" = "root" ]; then CARETCOLOR="red"; else CARETCOLOR="blue"; fi
+if [ $UID -eq 0 ]; then CARETCOLOR="red"; else CARETCOLOR="blue"; fi
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"