Fixes incorrect prompt arrow color
Fixes a bug where color of status arrow in prompt is red even when the exit code was zero (or success). This fix correclty returns green arrow on success and red for non-success exit code.
Diff
1diff --git a/themes/awesomepanda.zsh-theme b/themes/awesomepanda.zsh-theme
2index 411b898371ade495a7924e6cd871d8f442d13b82..1c5d06b2de79c0998b8129d15b046aac7c014b9d 100644
3--- a/themes/awesomepanda.zsh-theme
4+++ b/themes/awesomepanda.zsh-theme
5@@ -1,18 +1,16 @@
6 # the svn plugin has to be activated for this to work.
7-
8-PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%}$(svn_prompt_info)%{$reset_color%}'
9+local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ %s)"
10+PROMPT='${ret_status}%{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%}$(svn_prompt_info)%{$reset_color%}'
1112 ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}"
13 ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
14 ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%})%{$fg[yellow]%} ✗ %{$reset_color%}"
15 ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%}) "
1617-
18-
19 ZSH_PROMPT_BASE_COLOR="%{$fg_bold[blue]%}"
20 ZSH_THEME_REPO_NAME_COLOR="%{$fg_bold[red]%}"
2122 ZSH_THEME_SVN_PROMPT_PREFIX="svn:("
23 ZSH_THEME_SVN_PROMPT_SUFFIX=")"
24 ZSH_THEME_SVN_PROMPT_DIRTY="%{$fg[red]%} ✘ %{$reset_color%}"
25-ZSH_THEME_SVN_PROMPT_CLEAN=" "
26+ZSH_THEME_SVN_PROMPT_CLEAN=" "