diff options
author | Robby Russell <robby@planetargon.com> | 2012-12-04 06:36:08 -0800 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2012-12-04 06:36:08 -0800 |
commit | 63deae380cece1abe4634e68a3e0df817b152da4 (patch) | |
tree | beec568b6faf6575c42faf8151c4270a03c3c1a0 /themes | |
parent | 868a5138f619f4d35588ba01b8b3340a4086b4ea (diff) | |
parent | 3199d2ed8d70dc45911f34dd7c2ec4b702db3b28 (diff) | |
download | zsh-63deae380cece1abe4634e68a3e0df817b152da4.tar.gz zsh-63deae380cece1abe4634e68a3e0df817b152da4.tar.bz2 zsh-63deae380cece1abe4634e68a3e0df817b152da4.zip |
Merge branch 'master' of github.com:robbyrussell/oh-my-zsh
Diffstat (limited to 'themes')
-rw-r--r-- | themes/mortalscumbag.zsh-theme | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/themes/mortalscumbag.zsh-theme b/themes/mortalscumbag.zsh-theme index 7e25b149f..5dbf2e4f6 100644 --- a/themes/mortalscumbag.zsh-theme +++ b/themes/mortalscumbag.zsh-theme @@ -46,7 +46,8 @@ function ssh_connection() { fi } -PROMPT=$'\n$(ssh_connection)%{$fg_bold[green]%}%n@%m%{$reset_color%}$(my_git_prompt) : %~\n%# ' +local ret_status="%(?:%{$fg_bold[green]%}:%{$fg_bold[red]%})%?%{$reset_color%}" +PROMPT=$'\n$(ssh_connection)%{$fg_bold[green]%}%n@%m%{$reset_color%}$(my_git_prompt) : %~\n[${ret_status}] %# ' ZSH_THEME_PROMPT_RETURNCODE_PREFIX="%{$fg_bold[red]%}" ZSH_THEME_GIT_PROMPT_PREFIX=" $fg[white]‹ %{$fg_bold[yellow]%}" |