diff options
author | Robby Russell <robby@planetargon.com> | 2014-11-06 10:42:38 -0800 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2014-11-06 10:42:38 -0800 |
commit | 7f75bb90e326fdb39de37c14a0813e52801b1bba (patch) | |
tree | 14bc3e5448b5d2afc822bbe890a12864026dc6d4 /themes/ys.zsh-theme | |
parent | 7034b01cd10cebb2658f54aa07ac0ce5ee64e0e0 (diff) | |
parent | 95d795e8cad7d1a754dfad520309d7a41b69275f (diff) | |
download | zsh-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/ys.zsh-theme')
-rw-r--r-- | themes/ys.zsh-theme | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/ys.zsh-theme b/themes/ys.zsh-theme index a44f295f4..017139100 100644 --- a/themes/ys.zsh-theme +++ b/themes/ys.zsh-theme @@ -8,7 +8,7 @@ # Machine name. function box_name { - [ -f ~/.box-name ] && cat ~/.box-name || hostname + [ -f ~/.box-name ] && cat ~/.box-name || echo $HOST } # Directory info. @@ -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%} \ |