blob: f0959540e95c58a9ef2779c279c424918fd6320e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
KBDFILE=$ZDOTDIR/zkbd/$TERM-$VENDOR-$OSTYPE
[[ -f $KBDFILE ]] && source $KBDFILE
[[ -n ${key[Left]} ]] && bindkey "${key[Left]}" backward-char
[[ -n ${key[Right]} ]] && bindkey "${key[Right]}" forward-char
[[ -n ${key[Backspace]} ]] && bindkey "${key[Backspace]}" backward-delete-char
[[ -n ${key[Delete]} ]] && bindkey "${key[Delete]}" delete-char
[[ -n ${key[Up]} ]] && bindkey "${key[Up]}" up-line-or-search
[[ -n ${key[Down]} ]] && bindkey "${key[Down]}" down-line-or-search
[[ -n ${key[Home]} ]] && bindkey "${key[Home]}" beginning-of-line
[[ -n ${key[End]} ]] && bindkey "${key[End]}" end-of-line
# MOUSES
[[ -n ${key[ScrollUp]} ]] && bindkey "${key[ScrollUp]}" up-history
[[ -n ${key[ScrollDown]} ]] && bindkey "${key[ScrollDown]}" down-history
bindkey '^R' history-incremental-search-backward
|