From f9c5226b034f5648375197bcb7337fb5ef6ead83 Mon Sep 17 00:00:00 2001 From: kemonine Date: Fri, 2 Aug 2024 14:10:36 -0400 Subject: [PATCH] set univesal fwd del, home, end keys in zshrc --- zshrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zshrc b/zshrc index 4f8bd29..0105492 100644 --- a/zshrc +++ b/zshrc @@ -111,6 +111,9 @@ source ~/.zcomet/repos/larkery/zsh-histdb/histdb-interactive.zsh alias hist="histdb-skim-widget" # Fix home/end/del silly +bindkey "^[[H" beginning-of-line +bindkey "^[[F" end-of-line +bindkey "^[[3~" delete-char if [[ "$TERM" != emacs ]]; then [[ -z "$terminfo[kdch1]" ]] || bindkey -M emacs "$terminfo[kdch1]" delete-char [[ -z "$terminfo[khome]" ]] || bindkey -M emacs "$terminfo[khome]" beginning-of-line