diff options
author | zghember <zghpku@gmail.com> | 2014-12-15 00:23:34 +0800 |
---|---|---|
committer | zghember <zghpku@gmail.com> | 2014-12-15 00:23:34 +0800 |
commit | 6fd0b73e9aba568640005798f737cd73ad0bfdf4 (patch) | |
tree | 22f3654e0c00ffd1cb9c3c05ca5d8bffa190cc1f /themes/ys.zsh-theme | |
parent | 6f70d288cc4625142413227109bf1eeac7e2a180 (diff) | |
parent | 141c2e593401f245a9f9bb0799ada8bf14b677d7 (diff) | |
download | zsh-6fd0b73e9aba568640005798f737cd73ad0bfdf4.tar.gz zsh-6fd0b73e9aba568640005798f737cd73ad0bfdf4.tar.bz2 zsh-6fd0b73e9aba568640005798f737cd73ad0bfdf4.zip |
Merge commit '141c2e593401f245a9f9bb0799ada8bf14b677d7'
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%} \ |