1
0
Fork 0
mirror of synced 2024-11-14 03:58:58 -05:00

RPROMPT Method

This commit is contained in:
Colin Jamison 2017-01-18 18:48:05 +01:00
parent f34e13367d
commit 55ea696cb0

View file

@ -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
} }