summaryrefslogtreecommitdiff
path: root/themes/ys.zsh-theme
diff options
context:
space:
mode:
authorBob Williams <bobwilliams.ii@gmail.com>2014-03-14 10:32:03 -0400
committerBob Williams <bobwilliams.ii@gmail.com>2014-03-14 10:32:03 -0400
commit223fd60ba597b8c23569c65878d766c3c933fa70 (patch)
tree33c5c6a150293e6cf81f26f0f1b9c733dcf8aab7 /themes/ys.zsh-theme
parent185cb6e37352cc0d92042e35d259b0de3f5f3886 (diff)
parentee21fe94473404b58cbaea5b2c279f7a07c34ce1 (diff)
downloadzsh-223fd60ba597b8c23569c65878d766c3c933fa70.tar.gz
zsh-223fd60ba597b8c23569c65878d766c3c933fa70.tar.bz2
zsh-223fd60ba597b8c23569c65878d766c3c933fa70.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'themes/ys.zsh-theme')
-rw-r--r--themes/ys.zsh-theme13
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