diff options
Diffstat (limited to '.config/zsh/functions.zsh')
-rw-r--r-- | .config/zsh/functions.zsh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.config/zsh/functions.zsh b/.config/zsh/functions.zsh new file mode 100644 index 0000000..cca1d29 --- /dev/null +++ b/.config/zsh/functions.zsh @@ -0,0 +1,13 @@ +# Change cursor shape for different vi modes. +function zle-keymap-select { + if [[ ${KEYMAP} == vicmd ]] + [[ $1 = 'block' ]]; then + echo -ne '\e[1 q' + + elif [[ ${KEYMAP} == main ]] + [[ ${KEYMAP} == viins ]] + [[ ${KEYMAP} = '' ]] + [[ $1 = 'beam' ]]; then + echo -ne '\e[5 q' + fi +} |