diff options
author | Marc Cornellà <marc.cornella@live.com> | 2014-10-09 13:44:54 +0200 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2014-11-06 18:33:56 +0100 |
commit | 74177c5320b2a1b2f8c4c695c05984b57fd7c6ea (patch) | |
tree | 25e9bac6d2b14229ae5d5645d1a4344795233f81 /themes/re5et.zsh-theme | |
parent | 7034b01cd10cebb2658f54aa07ac0ce5ee64e0e0 (diff) | |
download | zsh-74177c5320b2a1b2f8c4c695c05984b57fd7c6ea.tar.gz zsh-74177c5320b2a1b2f8c4c695c05984b57fd7c6ea.tar.bz2 zsh-74177c5320b2a1b2f8c4c695c05984b57fd7c6ea.zip |
Change all whoami calls for $USER variable
This avoid spawning additional processes, as the $USER variable will
**always** contain the current logged-in user.
Diffstat (limited to 'themes/re5et.zsh-theme')
-rw-r--r-- | themes/re5et.zsh-theme | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/re5et.zsh-theme b/themes/re5et.zsh-theme index 5bded76a3..95af1e2ee 100644 --- a/themes/re5et.zsh-theme +++ b/themes/re5et.zsh-theme @@ -1,4 +1,4 @@ -if [ "$(whoami)" = "root" ]; then CARETCOLOR="red"; else CARETCOLOR="magenta"; fi +if [ "$USER" = "root" ]; then CARETCOLOR="red"; else CARETCOLOR="magenta"; fi local return_code="%(?..%{$fg_bold[red]%}:( %?%{$reset_color%})" |