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/adben.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/adben.zsh-theme')
-rw-r--r-- | themes/adben.zsh-theme | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/themes/adben.zsh-theme b/themes/adben.zsh-theme index aa3093f64..6869c8a20 100644 --- a/themes/adben.zsh-theme +++ b/themes/adben.zsh-theme @@ -89,9 +89,8 @@ function precmd { # Context: user@directory or just directory prompt_context () { - local user=`whoami` - if [[ "$user" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then - echo -n "${PR_RESET}${PR_RED}$user@%m${PR_RESET}${PR_BRIGHT_YELLOW}%~%<<${PR_RESET}" + if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then + echo -n "${PR_RESET}${PR_RED}$USER@%m${PR_RESET}${PR_BRIGHT_YELLOW}%~%<<${PR_RESET}" else echo -n "${PR_RESET}${PR_BRIGHT_YELLOW}%~%<<${PR_RESET}" fi |