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/ys.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/ys.zsh-theme')
-rw-r--r-- | themes/ys.zsh-theme | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/ys.zsh-theme b/themes/ys.zsh-theme index a44f295f4..65448964d 100644 --- a/themes/ys.zsh-theme +++ b/themes/ys.zsh-theme @@ -33,7 +33,7 @@ ${git_info} \ %{$fg[white]%}[%*] %{$terminfo[bold]$fg[red]%}$ %{$reset_color%}" -if [[ "$(whoami)" == "root" ]]; then +if [[ "$USER" == "root" ]]; then PROMPT=" %{$terminfo[bold]$fg[blue]%}#%{$reset_color%} \ %{$bg[yellow]%}%{$fg[cyan]%}%n%{$reset_color%} \ |