a649b2d410e3f3cd2b5749d199da03168d0c3920

Author
Andy Fowler <andy@andyfowler.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

happy with my theme. caret turns red for root

Diff

 1diff --git a/themes/afowler.zsh-theme b/themes/afowler.zsh-theme
 2index f82e7bc2572ad3d9bc24b45f0a8a600077a2953d..b5a9bb1730da771dd6cc253e1676e3382285b808 100644
 3--- a/themes/afowler.zsh-theme
 4+++ b/themes/afowler.zsh-theme
 5@@ -1,6 +1,8 @@
 6+if [ "$(whoami)" = "root" ]; then CARETCOLOR="red"; else CARETCOLOR="blue"; fi
 7+
 8 local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
 9 
10-PROMPT='%m %{${fg_bold[blue]}%}:: %{$reset_color%}%{${fg[green]}%}%3~ $(git_prompt_info)%{${fg[blue]}%}»%{${reset_color}%} '
11+PROMPT='%m %{${fg_bold[blue]}%}:: %{$reset_color%}%{${fg[green]}%}%3~ $(git_prompt_info)%{${fg_bold[$CARETCOLOR]}%}»%{${reset_color}%} '
12 
13 RPS1="${return_code}"
14