e096e4041f76c70a621df2b02bb67bed88e6bcee
- Author
- Andrei Gorgan <andrei.gorgan@cloudbit.ro>
- Committer
- Andrei Gorgan <andrei.gorgan@cloudbit.ro>
- Date
Message
Diff
1diff --git a/themes/mortalscumbag.zsh-theme b/themes/mortalscumbag.zsh-theme
2index 7e25b149f8627231e0581d2ea531c76591dc987d..ae3f1c9fcf034efe7db8c46918f7a2f86f2df1e1 100644
3--- a/themes/mortalscumbag.zsh-theme
4+++ b/themes/mortalscumbag.zsh-theme
5@@ -46,7 +46,8 @@ function ssh_connection() {
6 fi
7 }
8
9-PROMPT=$'\n$(ssh_connection)%{$fg_bold[green]%}%n@%m%{$reset_color%}$(my_git_prompt) : %~\n%# '
10+local ret_status="%(?:%{$fg_bold[green]%}:%{$fg_bold[red]%})%?%{$reset_color%}"
11+PROMPT=$'\n$(ssh_connection)%{$fg_bold[cyan]%}%n@%m%{$reset_color%}$(my_git_prompt) : %~\n[${ret_status}] %# '
12
13 ZSH_THEME_PROMPT_RETURNCODE_PREFIX="%{$fg_bold[red]%}"
14 ZSH_THEME_GIT_PROMPT_PREFIX=" $fg[white]‹ %{$fg_bold[yellow]%}"