summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorSteve Lessard Jr <slessardjr@me.com>2023-10-13 18:26:16 -0400
committerGitHub <noreply@github.com>2023-10-13 15:26:16 -0700
commit2db53ff1da078b2207cb98736370f1f145e5c667 (patch)
tree00c8eaa140d19ea88cf84c5c13043f4233341a03 /themes
parent48a62a9f713449a014d66b01afd99a4fcf1911fe (diff)
downloadzsh-2db53ff1da078b2207cb98736370f1f145e5c667.tar.gz
zsh-2db53ff1da078b2207cb98736370f1f145e5c667.tar.bz2
zsh-2db53ff1da078b2207cb98736370f1f145e5c667.zip
fix(avit): RPROMPT Fix for #10307 (#11131)
Co-authored-by: Steve Lessard <slessardjr@users.noreply.github.com>
Diffstat (limited to 'themes')
-rw-r--r--themes/avit.zsh-theme7
1 files changed, 6 insertions, 1 deletions
diff --git a/themes/avit.zsh-theme b/themes/avit.zsh-theme
index 1279ea919..206274462 100644
--- a/themes/avit.zsh-theme
+++ b/themes/avit.zsh-theme
@@ -11,7 +11,12 @@ $(_user_host)${_current_dir} $(git_prompt_info) $(ruby_prompt_info)
PROMPT2='%{%(!.${fg[red]}.${fg[white]})%}◀%{$reset_color%} '
-RPROMPT='$(vi_mode_prompt_info)%{$(echotc UP 1)%}$(_git_time_since_commit) $(git_prompt_status) ${_return_status}%{$(echotc DO 1)%}'
+__RPROMPT='$(vi_mode_prompt_info)%{$(echotc UP 1)%}$(_git_time_since_commit) $(git_prompt_status) ${_return_status}%{$(echotc DO 1)%}'
+if [[ -z $RPROMPT ]]; then
+ RPROMPT=$__RPROMPT
+else
+ RPROMPT="${RPROMPT} ${__RPROMPT}"
+fi
function _user_host() {
local me