set univesal fwd del, home, end keys in zshrc

This commit is contained in:
kemonine 2024-08-02 14:10:36 -04:00
parent 4f36d5656c
commit f9c5226b03

3
zshrc
View file

@ -111,6 +111,9 @@ source ~/.zcomet/repos/larkery/zsh-histdb/histdb-interactive.zsh
alias hist="histdb-skim-widget" alias hist="histdb-skim-widget"
# Fix home/end/del silly # Fix home/end/del silly
bindkey "^[[H" beginning-of-line
bindkey "^[[F" end-of-line
bindkey "^[[3~" delete-char
if [[ "$TERM" != emacs ]]; then if [[ "$TERM" != emacs ]]; then
[[ -z "$terminfo[kdch1]" ]] || bindkey -M emacs "$terminfo[kdch1]" delete-char [[ -z "$terminfo[kdch1]" ]] || bindkey -M emacs "$terminfo[kdch1]" delete-char
[[ -z "$terminfo[khome]" ]] || bindkey -M emacs "$terminfo[khome]" beginning-of-line [[ -z "$terminfo[khome]" ]] || bindkey -M emacs "$terminfo[khome]" beginning-of-line