ff7e0648965e027d1b8c995065b5152333a82b7a

Author
Rach Belaid <rachid.belaid@gmail.com>
Committer
Rach Belaid <rachid.belaid@gmail.com>
Date

Message

change the color of arrow when the command line return an error

Diff

 1diff --git a/themes/robbyrussell.zsh-theme b/themes/robbyrussell.zsh-theme
 2index 7b524e82d8803c2cc75504cd87227c2d1384264a..24e1e8c5228bc479bab92c8c2fe955b2f53ad845 100644
 3--- a/themes/robbyrussell.zsh-theme
 4+++ b/themes/robbyrussell.zsh-theme
 5@@ -1,4 +1,5 @@
 6-PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
 7+local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ %s)"
 8+PROMPT='${ret_status}%{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
 9 
10 ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}"
11 ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"