1
0
Fork 0
mirror of synced 2024-11-12 19:18:57 -05:00

Insertmode indicator for steeef

This commit is contained in:
Colin Jamison 2017-01-18 20:28:00 +01:00
parent 474f7d2447
commit 3be6b26cd0

View file

@ -45,6 +45,11 @@ prompt_steeef_precmd() {
%(!.#.$) '
}
function zle-line-init zle-keymap-select {
RPROMPT="${${KEYMAP/vicmd/--NORMAL--}/(main|viins)/}"
zle reset-prompt
}
prompt_steeef_setup() {
#use extended color pallete if available
if [[ ${TERM} == *256* || ${TERM} == *rxvt* ]]; then
@ -93,6 +98,9 @@ prompt_steeef_setup() {
autoload -Uz vcs_info
autoload -Uz colors && colors
zle -N zle-line-init
zle -N zle-keymap-select
add-zsh-hook preexec steeef_preexec
add-zsh-hook chpwd steeef_chpwd
add-zsh-hook precmd prompt_steeef_precmd