5 ms·
To get [NORMAL] on the right side of the terminal like in Vim, I put this in my .zshrc file: function zle-line-init zle-keymap-select { VIM_PROMPT=
by bgar 13y ago
To get
[NORMAL]
on the right side of the terminal like in Vim, I put this in my .zshrc file:
function zle-line-init zle-keymap-select {
VIM_PROMPT="%{$fg_bold[yellow]%} [% %{$reset_color%}NORMAL%{$fg_bold[yellow]%}]% %{$reset_color%}"
RPS1="${${KEYMAP/vicmd/$VIM_PROMPT}/(main|viins)/} $EPS1"
zle reset-prompt
}
- Tyr42 13y agoIs there a bash version of that? I don't care about where it is too much.