dotfiles/.zshrc.d/input.zsh

19 lines
427 B
Bash
Raw Normal View History

2022-07-17 04:25:55 +02:00
# vim:set ft=zsh ai et sw=4 ts=4:
#
# ~/.zsh/input.zsh
$include /etc/inputrc
bindkey -v
typeset -g -A key
key[Home]="${terminfo[khome]}"
key[End]="${terminfo[kend]}"
[[ -n "${key[Home]}" ]] && bindkey -- "${key[Home]}" beginning-of-line
[[ -n "${key[End]}" ]] && bindkey -- "${key[End]}" end-of-line
## history substring search
bindkey '^[[1;5A' history-substring-search-up
bindkey '^[[1;5B' history-substring-search-down