Fix theme with the async git prompt

Jacopo De Simoi 2 years ago
parent 6fff6a221f
commit 963986dc83
  1. 2
      themes/gentoo-wilder.zsh-theme
  2. 2
      themes/gentoo-wildersingleline.zsh-theme

@ -50,7 +50,7 @@ $return_code_vertical_top"
# add username only from remote
[[ "$SSH_CONNECTION" != '' ]] && PROMPT+=$'%(!.%{\e[0;34m%}%}.%{\e[0;32m%}%}%n@)%m '
PROMPT+=$'%{$dir_tint%}%(!.%1~.%~)%{$reset_color%}$(git_stuff)%_
PROMPT+=$'%{$dir_tint%}%(!.%1~.%~)%{$reset_color%}$(git_stuff)
${return_code_vertical}$(prompt_char)%{$reset_color%} '
RPROMPT=$'%{$jobs_tint%}$jobs_marker[${(%):-%j}]%{$reset_color%}'

@ -10,7 +10,7 @@ function get_nr_jobs() {
}
PROMPT='
%(!.%{$fg_bold[red]%}.%{$fg_bold[green]%}%n@)%m %{$fg_bold[blue]%}%(!.%1~.%~)$(git_prompt_info)$(git_commits_ahead)%_
%(!.%{$fg_bold[red]%}.%{$fg_bold[green]%}%n@)%m %{$fg_bold[blue]%}%(!.%1~.%~)$(git_prompt_info)$(git_commits_ahead)
$(prompt_char)%{$reset_color%} '
RPROMPT='%{$fg_bold[green]%}$(get_nr_jobs)%{$reset_color%}'

Loading…
Cancel
Save