ee46d198ad94c3e4942f2557b6ecade5f9224b3e

Author
Marc Cornellà <hello@mcornella.com>
Committer
Marc Cornellà <hello@mcornella.com>
Date

Message

style(afowler): simplify code and remove unnecessary variables

Diff

 1diff --git a/themes/afowler.zsh-theme b/themes/afowler.zsh-theme
 2index 3a4753fc105f01c21e30d7886f887360cec74da7..783bdc26999e7298546a488b54209d5656b05779 100644
 3--- a/themes/afowler.zsh-theme
 4+++ b/themes/afowler.zsh-theme
 5@@ -1,10 +1,5 @@
 6-if [ $UID -eq 0 ]; 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_bold[$CARETCOLOR]}%}»%{${reset_color}%} '
11-
12-RPS1="${return_code}"
13+PROMPT='%m %B%F{blue}:: %b%F{green}%3~ $(git_prompt_info)%B%(!.%F{red}.%F{blue})»%f%b '
14+RPS1='%(?..%F{red}%? ↵%f)'
15 
16 ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}‹"
17 ZSH_THEME_GIT_PROMPT_SUFFIX="› %{$reset_color%}"