|
|
@ -80,19 +80,22 @@ key[Left]="$terminfo[kcub1]" |
|
|
|
key[Right]="$terminfo[kcuf1]" |
|
|
|
key[PageUp]="$terminfo[kpp]" |
|
|
|
key[PageDown]="$terminfo[knp]" |
|
|
|
key[Control-Left]="$terminfo[kLFT5]}" |
|
|
|
key[Control-Right]="$terminfo[kRIT5]}" |
|
|
|
|
|
|
|
# setup key accordingly |
|
|
|
[[ -n "${key[Home]}" ]] && bindkey "${key[Home]}" beginning-of-line |
|
|
|
[[ -n "${key[End]}" ]] && bindkey "${key[End]}" end-of-line |
|
|
|
[[ -n "${key[Insert]}" ]] && bindkey "$key[Insert]}" overwrite-mode |
|
|
|
[[ -n "${key[Delete]}" ]] && bindkey "${key[Delete]}" delete-char |
|
|
|
[[ -n "${key[Up]}" ]] && bindkey "${key[Up]}" up-line-or-history |
|
|
|
[[ -n "${key[Down]}" ]] && bindkey "${key[Down]}" down-line-or-history |
|
|
|
[[ -n "${key[Left]}" ]] && bindkey "${key[Left]}" backward-char |
|
|
|
[[ -n "${key[Right]}" ]] && bindkey "${key[Right]}" forward-char |
|
|
|
[[ -n "${key[PageUp]}" ]] && bindkey "${key[PageUp]}" beginning-of-buffer-or-history |
|
|
|
[[ -n "${key[PageDown]}" ]] && bindkey "${key[PageDown]}" end-of-buffer-or-history |
|
|
|
|
|
|
|
[[ -n "${key[Home]}" ]] && bindkey "${key[Home]}" beginning-of-line |
|
|
|
[[ -n "${key[End]}" ]] && bindkey "${key[End]}" end-of-line |
|
|
|
[[ -n "${key[Insert]}" ]] && bindkey "$key[Insert]}" overwrite-mode |
|
|
|
[[ -n "${key[Delete]}" ]] && bindkey "${key[Delete]}" delete-char |
|
|
|
[[ -n "${key[Up]}" ]] && bindkey "${key[Up]}" up-line-or-history |
|
|
|
[[ -n "${key[Down]}" ]] && bindkey "${key[Down]}" down-line-or-history |
|
|
|
[[ -n "${key[Left]}" ]] && bindkey "${key[Left]}" backward-char |
|
|
|
[[ -n "${key[Right]}" ]] && bindkey "${key[Right]}" forward-char |
|
|
|
[[ -n "${key[PageUp]}" ]] && bindkey "${key[PageUp]}" beginning-of-buffer-or-history |
|
|
|
[[ -n "${key[PageDown]}" ]] && bindkey "${key[PageDown]}" end-of-buffer-or-history |
|
|
|
[[ -n "${key[Control-Left]}" ]] && bindkey "${key[Control-Left]}" backward-word |
|
|
|
[[ -n "${key[Control-Right]}" ]] && bindkey "${key[Control-Right]}" forward-word |
|
|
|
bindkey "^R" history-incremental-search-backward |
|
|
|
|
|
|
|
# Finally, make sure the terminal is in application mode, when zle is |
|
|
|