summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2012-12-03 07:26:25 -0800
committerRobby Russell <robby@planetargon.com>2012-12-03 07:26:25 -0800
commitb204ce8f67830b9d9022cd827ba073d40845e840 (patch)
treeb822ee711c8c50ec3d2ab7bbaa6f0c79edabd46d /themes
parent26b3e1015d0ee744f6d96cae6fe8fc8688616bbe (diff)
parent8925cff334f9009a0f27d38922731bbcd82c42cb (diff)
downloadzsh-b204ce8f67830b9d9022cd827ba073d40845e840.tar.gz
zsh-b204ce8f67830b9d9022cd827ba073d40845e840.tar.bz2
zsh-b204ce8f67830b9d9022cd827ba073d40845e840.zip
Merge pull request #1462 from aliasbind/master
Add last command's 'exit status' display to mortalscumbag theme
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..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]%}"