2db53ff1da078b2207cb98736370f1f145e5c667
- Author
- Steve Lessard Jr <slessardjr@me.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
fix(avit): RPROMPT Fix for #10307 (#11131)
Co-authored-by: Steve Lessard <slessardjr@users.noreply.github.com>
Diff
1diff --git a/themes/avit.zsh-theme b/themes/avit.zsh-theme
2index 1279ea9195fc956d8b8663339b2a3e8f650374b0..206274462825e13b4b45b77b448239e4e3b71c70 100644
3--- a/themes/avit.zsh-theme
4+++ b/themes/avit.zsh-theme
5@@ -11,7 +11,12 @@ $(_user_host)${_current_dir} $(git_prompt_info) $(ruby_prompt_info)
6
7 PROMPT2='%{%(!.${fg[red]}.${fg[white]})%}◀%{$reset_color%} '
8
9-RPROMPT='$(vi_mode_prompt_info)%{$(echotc UP 1)%}$(_git_time_since_commit) $(git_prompt_status) ${_return_status}%{$(echotc DO 1)%}'
10+__RPROMPT='$(vi_mode_prompt_info)%{$(echotc UP 1)%}$(_git_time_since_commit) $(git_prompt_status) ${_return_status}%{$(echotc DO 1)%}'
11+if [[ -z $RPROMPT ]]; then
12+ RPROMPT=$__RPROMPT
13+else
14+ RPROMPT="${RPROMPT} ${__RPROMPT}"
15+fi
16
17 function _user_host() {
18 local me