diff options
author | Felds Liscia <felds@carbon6.cc> | 2014-01-30 15:04:09 -0200 |
---|---|---|
committer | Felds Liscia <felds@carbon6.cc> | 2014-01-30 15:15:57 -0200 |
commit | 4d83da770a85f4d2e6b0e0990cb83c925de128bd (patch) | |
tree | fb4b3d63caa0456db4a8716b721ec84fbd6d9bcd /themes/ys.zsh-theme | |
parent | df0305aba511266865b371fa74b94bb3ee321e09 (diff) | |
download | zsh-4d83da770a85f4d2e6b0e0990cb83c925de128bd.tar.gz zsh-4d83da770a85f4d2e6b0e0990cb83c925de128bd.tar.bz2 zsh-4d83da770a85f4d2e6b0e0990cb83c925de128bd.zip |
highlight the username when root
Diffstat (limited to 'themes/ys.zsh-theme')
-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 |