diff options
author | Robby Russell <robby@planetargon.com> | 2014-03-08 08:15:29 -0800 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2014-03-08 08:15:29 -0800 |
commit | ae9a9b7f703ee6a773dccb9857d7939ef99fccd9 (patch) | |
tree | 08c2ba6e7d8e68c6a2ea54100b1216773fbced42 | |
parent | 7b06ce70a695d78a2c50353b8aa39cfec6f89b7a (diff) | |
parent | 4d83da770a85f4d2e6b0e0990cb83c925de128bd (diff) | |
download | zsh-ae9a9b7f703ee6a773dccb9857d7939ef99fccd9.tar.gz zsh-ae9a9b7f703ee6a773dccb9857d7939ef99fccd9.tar.bz2 zsh-ae9a9b7f703ee6a773dccb9857d7939ef99fccd9.zip |
Merge pull request #2481 from felds/master
highlight the username when root
-rw-r--r-- | themes/ys.zsh-theme | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/themes/ys.zsh-theme b/themes/ys.zsh-theme index 43c101c2a..a44f295f4 100644 --- a/themes/ys.zsh-theme +++ b/themes/ys.zsh-theme @@ -32,3 +32,16 @@ PROMPT=" ${git_info} \ %{$fg[white]%}[%*] %{$terminfo[bold]$fg[red]%}$ %{$reset_color%}" + +if [[ "$(whoami)" == "root" ]]; then +PROMPT=" +%{$terminfo[bold]$fg[blue]%}#%{$reset_color%} \ +%{$bg[yellow]%}%{$fg[cyan]%}%n%{$reset_color%} \ +%{$fg[white]%}at \ +%{$fg[green]%}$(box_name) \ +%{$fg[white]%}in \ +%{$terminfo[bold]$fg[yellow]%}${current_dir}%{$reset_color%}\ +${git_info} \ +%{$fg[white]%}[%*] +%{$terminfo[bold]$fg[red]%}$ %{$reset_color%}" +fi |