1c185f0055573376a302aaa2467982e5c0db1385
- Author
- Robby Russell <robby@planetargon.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Merge pull request #946 from rach/master
Little tweak on the robbyrussell.zsh-theme
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%}"