summaryrefslogtreecommitdiff
path: root/themes/bira.zsh-theme
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2016-03-11 00:18:00 -0800
committerRobby Russell <robby@planetargon.com>2016-03-11 00:18:00 -0800
commit83cf8dc16f51babbb0193c5b97e568739c1f40de (patch)
tree20a48739078b134d12e9662bc7711acd74a2c11e /themes/bira.zsh-theme
parentfdff70006c2cf577e1bf47e87faf7b793b1ec4de (diff)
parent55fed4f8cdfcf7791fd22b28ef65b00dcc9e1a5f (diff)
downloadzsh-83cf8dc16f51babbb0193c5b97e568739c1f40de.tar.gz
zsh-83cf8dc16f51babbb0193c5b97e568739c1f40de.tar.bz2
zsh-83cf8dc16f51babbb0193c5b97e568739c1f40de.zip
Merge pull request #4790 from lckarssen/avit-theme-fixes
Avit theme fixes
Diffstat (limited to 'themes/bira.zsh-theme')
-rw-r--r--themes/bira.zsh-theme8
1 files changed, 7 insertions, 1 deletions
diff --git a/themes/bira.zsh-theme b/themes/bira.zsh-theme
index 215720477..1ead93553 100644
--- a/themes/bira.zsh-theme
+++ b/themes/bira.zsh-theme
@@ -1,7 +1,13 @@
# ZSH Theme - Preview: http://gyazo.com/8becc8a7ed5ab54a0262a470555c3eed.png
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
-local user_host='%{$terminfo[bold]$fg[green]%}%n@%m%{$reset_color%}'
+
+if [[ $UID -eq 0 ]]; then
+ local user_host='%{$terminfo[bold]$fg[red]%}%n@%m%{$reset_color%}'
+else
+ local user_host='%{$terminfo[bold]$fg[green]%}%n@%m%{$reset_color%}'
+fi
+
local current_dir='%{$terminfo[bold]$fg[blue]%} %~%{$reset_color%}'
local rvm_ruby=''
if which rvm-prompt &> /dev/null; then