Skip to content

Instantly share code, notes, and snippets.

@simbuerg
simbuerg / bindkeys.zsh
Last active February 21, 2019 20:04 — forked from AbigailBuccaneer/bindkeys.zsh
zsh bindkeys using terminfo
# create a zkbd compatible hash;
# to add other keys to this hash, see: man 5 terminfo
typeset -A key
key[Home]=${terminfo[khome]}
key[End]=${terminfo[kend]}
key[Insert]=${terminfo[kich1]}
key[Delete]=${terminfo[kdch1]}
key[Up]=${terminfo[kcuu1]}
key[Down]=${terminfo[kcud1]}