Moves exit status code to first prompt line

This commit is contained in:
Pablo Lalloni 2013-09-22 17:40:50 -03:00
commit 035c144f71

View file

@ -49,7 +49,7 @@ function ssh_connection() {
psep="%{$reset_color%}$fg_bold[white]:%{$reset_color%}"
PROMPT=$'$(ssh_connection)%{$fg_bold[green]%}%n@%m %{$psep%} $fg_bold[cyan]%*%{$reset_color%} %{$psep%}$(my_git_prompt) %~\n%(?//%{$fg_bold[red]%}%? )%#%{$reset_color%} '
PROMPT=$'%(?//%{$fg_bold[red]%}= %?\n)$(ssh_connection)%{$fg_bold[green]%}%n@%m %{$psep%} $fg_bold[cyan]%*%{$reset_color%} %{$psep%}$(my_git_prompt) %~\n%#%{$reset_color%} '
ZSH_THEME_PROMPT_RETURNCODE_PREFIX="%{$fg_bold[red]%}"
ZSH_THEME_GIT_PROMPT_PREFIX=" $fg_bold[white] %{$fg_bold[yellow]%}"