Make home and end keys work

This commit is contained in:
David Morgan 2022-11-07 13:08:56 +00:00
parent 37f9c483f5
commit ba35d6cacc
Signed by: djm
GPG Key ID: C171251002C200F2
1 changed files with 5 additions and 0 deletions

View File

@ -95,6 +95,11 @@
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
# TODO should we use something based on ~/.zkbd/$TERM-${${DISPLAY:t}:-$VENDOR-$OSTYPE} ?
# make home and end work
[[ -z "$terminfo[khome]" ]] || bindkey -M emacs "$terminfo[khome]" beginning-of-line
[[ -z "$terminfo[khome]" ]] || bindkey -M emacs "$terminfo[khome]" beginning-of-line
# disable sort when completing `git checkout`
zstyle ''\':completion:*:git-checkout:*''\' sort false
# set descriptions format to enable group support