M zsh/config => zsh/config +2 -2
@@ 4,8 4,8 @@ autoload -U colors
colors
setopt prompt_subst
-PROMPT='$(exit_code_prompt) '
-RPROMPT='%{$fg_bold[%F{34}]%}$(virtualenv_prompt_info)%{$reset_color%} %{$fg_bold[%F{250}]%}%n@%M:%F{240}%/ %F{240}$(vcprompt -f "[%n:%b%m]")%{$reset_color%} [%*%f]'
+PROMPT='%{$fg_bold[grey]%}%n@%M%{$reset_color%}$(exit_code_prompt) '
+RPROMPT='%F{240}%/ %F{240}$(vcprompt -f "[%n:%b%m]")%{$reset_color%} [%*%f]'
PROMPT_EOL_MARK=' ↴'
WORDCHARS=${WORDCHARS//[&=\/;\!#%\{]}
M zsh/funcs => zsh/funcs +1 -1
@@ 20,7 20,7 @@ function exit_code_prompt() {
if [[ $LAST_EXIT_CODE -eq 0 ]]; then
EXIT_CODE_PROMPT="%{$fg_bold[green]%}-->%{$reset_color%}"
else
- EXIT_CODE_PROMPT="%{$fg_bold[red]%}$LAST_EXIT_CODE->%{$reset_color%}"
+ EXIT_CODE_PROMPT="%{$fg_bold[red]%}:$LAST_EXIT_CODE->%{$reset_color%}"
fi
echo "$EXIT_CODE_PROMPT"
}