]> git.rmz.io Git - dotfiles.git/blobdiff - zsh/themes/mortalscumbag.zsh-theme
Squashed commit of the following + cleanup afterwards:
[dotfiles.git] / zsh / themes / mortalscumbag.zsh-theme
index 7e25b149f8627231e0581d2ea531c76591dc987d..5dbf2e4f69417aa99423cad14509dce9579ee6dd 100644 (file)
@@ -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]%}"