From 55ea696cb013be7a84ef592f142ff654100801be Mon Sep 17 00:00:00 2001 From: Colin Jamison Date: Wed, 18 Jan 2017 18:48:05 +0100 Subject: [PATCH] RPROMPT Method --- modules/prompt/themes/eriner.zsh-theme | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/prompt/themes/eriner.zsh-theme b/modules/prompt/themes/eriner.zsh-theme index 0841d12..dcd27eb 100644 --- a/modules/prompt/themes/eriner.zsh-theme +++ b/modules/prompt/themes/eriner.zsh-theme @@ -55,7 +55,7 @@ prompt_segment() { # End the prompt, closing any open segments prompt_end() { 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 print -n "%{%k%}" fi @@ -146,8 +146,7 @@ prompt_eriner_precmd() { function zle-keymap-select zle-line-init { PROMPT="%{%f%b%k%}$(prompt_eriner_main)" -# local INSM="$TEMP" - #local NORM="$TEMP%{%F{red}%}" + RPROMPT="${${KEYMAP/vicmd/[normal]}/(main|viins)/[insert]}" zle reset-prompt }