diff options
author | Robby Russell <robby@planetargon.com> | 2013-12-02 23:17:25 -0800 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2013-12-02 23:17:25 -0800 |
commit | 1c185f0055573376a302aaa2467982e5c0db1385 (patch) | |
tree | 3a435c298a9e99349cff3340aeb9647f4611506c /themes/robbyrussell.zsh-theme | |
parent | 4954335b64e294923d64c4a9208e732bb9399268 (diff) | |
parent | ff7e0648965e027d1b8c995065b5152333a82b7a (diff) | |
download | zsh-1c185f0055573376a302aaa2467982e5c0db1385.tar.gz zsh-1c185f0055573376a302aaa2467982e5c0db1385.tar.bz2 zsh-1c185f0055573376a302aaa2467982e5c0db1385.zip |
Merge pull request #946 from rach/master
Little tweak on the robbyrussell.zsh-theme
Diffstat (limited to 'themes/robbyrussell.zsh-theme')
-rw-r--r-- | themes/robbyrussell.zsh-theme | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/themes/robbyrussell.zsh-theme b/themes/robbyrussell.zsh-theme index 7b524e82d..24e1e8c52 100644 --- a/themes/robbyrussell.zsh-theme +++ b/themes/robbyrussell.zsh-theme @@ -1,4 +1,5 @@ -PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}' +local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ %s)" +PROMPT='${ret_status}%{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}' ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}" ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" |