summaryrefslogtreecommitdiff
path: root/themes/ys.zsh-theme
diff options
context:
space:
mode:
authorPavol Juhas <pavol.juhas@gmail.com>2014-03-17 19:48:10 -0400
committerPavol Juhas <pavol.juhas@gmail.com>2014-03-17 19:48:10 -0400
commit6952105bfe1fd4121fd355dc5f8ec5e03de5541c (patch)
tree604e65e52df88e28f99f49b939aa9547eb009b1c /themes/ys.zsh-theme
parented19ffee5ecc0db6617c1ae753e515d60cb486c6 (diff)
parentca900216302aa1138c793971cf877b5d4e88fb06 (diff)
downloadzsh-6952105bfe1fd4121fd355dc5f8ec5e03de5541c.tar.gz
zsh-6952105bfe1fd4121fd355dc5f8ec5e03de5541c.tar.bz2
zsh-6952105bfe1fd4121fd355dc5f8ec5e03de5541c.zip
Merge branch 'master' of https://github.com/robbyrussell/oh-my-zsh
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