summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorAndrei Gorgan <andrei.gorgan@cloudbit.ro>2012-12-03 12:03:43 +0200
committerAndrei Gorgan <andrei.gorgan@cloudbit.ro>2012-12-03 12:03:43 +0200
commite096e4041f76c70a621df2b02bb67bed88e6bcee (patch)
treea454793550dba6877d5264ad43adb1d26912f8f1 /themes
parent51e05b7579a26266a0ed26398ab9eb5071800cd8 (diff)
downloadzsh-e096e4041f76c70a621df2b02bb67bed88e6bcee.tar.gz
zsh-e096e4041f76c70a621df2b02bb67bed88e6bcee.tar.bz2
zsh-e096e4041f76c70a621df2b02bb67bed88e6bcee.zip
Print last exit status in mortalscumbag prompt
Diffstat (limited to 'themes')
-rw-r--r--themes/mortalscumbag.zsh-theme3
1 files changed, 2 insertions, 1 deletions
diff --git a/themes/mortalscumbag.zsh-theme b/themes/mortalscumbag.zsh-theme
index 7e25b149f..ae3f1c9fc 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[cyan]%}%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]%}"