RPROMPT Method
This commit is contained in:
parent
f34e13367d
commit
55ea696cb0
1 changed files with 2 additions and 3 deletions
|
@ -55,7 +55,7 @@ prompt_segment() {
|
||||||
# End the prompt, closing any open segments
|
# End the prompt, closing any open segments
|
||||||
prompt_end() {
|
prompt_end() {
|
||||||
if [[ -n $CURRENT_BG ]]; then
|
if [[ -n $CURRENT_BG ]]; then
|
||||||
print -n "%{%k%F{${CURRENT_BG}}%}${${KEYMAP/vicmd/$NORM_INDICATOR}/(main|viins)/$SEGMENT_SEPARATOR}"
|
print -n "%{%k%F{${CURRENT_BG}}%}${SEGMENT_SEPARATOR}"
|
||||||
else
|
else
|
||||||
print -n "%{%k%}"
|
print -n "%{%k%}"
|
||||||
fi
|
fi
|
||||||
|
@ -146,8 +146,7 @@ prompt_eriner_precmd() {
|
||||||
|
|
||||||
function zle-keymap-select zle-line-init {
|
function zle-keymap-select zle-line-init {
|
||||||
PROMPT="%{%f%b%k%}$(prompt_eriner_main)"
|
PROMPT="%{%f%b%k%}$(prompt_eriner_main)"
|
||||||
# local INSM="$TEMP"
|
RPROMPT="${${KEYMAP/vicmd/[normal]}/(main|viins)/[insert]}"
|
||||||
#local NORM="$TEMP%{%F{red}%}"
|
|
||||||
zle reset-prompt
|
zle reset-prompt
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue