vi-mode show indicator on zle-line-init and SIGWINCH

This commit is contained in:
Balint Gyapjas 2017-11-23 17:59:51 +01:00
parent e273cf004e
commit c2ccb209bb

View File

@ -4,9 +4,15 @@ function zle-keymap-select() {
zle -R zle -R
} }
# Ensures that MODE_INDITCATOR is displayed on terminal start up.
function zle-line-init() {
zle reset-prompt
}
# Ensure that the prompt is redrawn when the terminal size changes. # Ensure that the prompt is redrawn when the terminal size changes.
TRAPWINCH() { TRAPWINCH() {
zle && zle -R zle && zle -R
zle reset-prompt
} }
zle -N zle-keymap-select zle -N zle-keymap-select