mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-22 03:21:30 +01:00
zsh: move vi_mode_prompt_info to RPS1
This commit is contained in:
parent
dbe581b065
commit
71f307e12c
|
@ -126,7 +126,7 @@ function ret_status() {
|
||||||
|
|
||||||
export MODE_INDICATOR="%F{255}[%F{9}nav%F{255}]%f"
|
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(){
|
function prompt_too_long(){
|
||||||
local zero='%([BSUbfksu]|([FK]|){*})'
|
local zero='%([BSUbfksu]|([FK]|){*})'
|
||||||
|
@ -155,4 +155,4 @@ PROMPT+='${$(prompt_too_long)/true/${NEWLINE}}'
|
||||||
PROMPT+='$(ret_status) '
|
PROMPT+='$(ret_status) '
|
||||||
|
|
||||||
# Right prompt is just return code and time
|
# 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'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user