From 2b35f51b6b7f29632731a330b11c85f6cf194096 Mon Sep 17 00:00:00 2001 From: bretello Date: Sun, 21 Feb 2021 23:48:58 +0100 Subject: [PATCH] zsh: move vi_mode_prompt_info to RPS1 --- themes/brethil.zsh-theme | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/brethil.zsh-theme b/themes/brethil.zsh-theme index 3559112..366a000 100644 --- a/themes/brethil.zsh-theme +++ b/themes/brethil.zsh-theme @@ -126,7 +126,7 @@ function ret_status() { export MODE_INDICATOR="%F{255}[%F{9}nav%F{255}]%f" -_PROMPT_PROTO='$(vi_mode_prompt_info)$(virtualenv_info)$(user_prompt)$(path_prompt)$(git_prompt)$(job_prompt)$(shlvl_prompt)' +_PROMPT_PROTO='$(virtualenv_info)$(user_prompt)$(path_prompt)$(git_prompt)$(job_prompt)$(shlvl_prompt)' function prompt_too_long(){ local zero='%([BSUbfksu]|([FK]|){*})' @@ -155,4 +155,4 @@ PROMPT+='${$(prompt_too_long)/true/${NEWLINE}}' PROMPT+='$(ret_status) ' # Right prompt is just return code and time -RPS1='$(return_code_RPS1) %F{255}[%*]%f' +RPS1='$(return_code_RPS1)$(vi_mode_prompt_info)%F{255}[%*]%f'