From ba35d6cacc99e559c468e4a15dd8a08bdf1dc380 Mon Sep 17 00:00:00 2001 From: David Morgan Date: Mon, 7 Nov 2022 13:08:56 +0000 Subject: [PATCH] Make home and end keys work --- nix-conf/home/includes/zsh.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nix-conf/home/includes/zsh.nix b/nix-conf/home/includes/zsh.nix index 2775fe0..ea10955 100644 --- a/nix-conf/home/includes/zsh.nix +++ b/nix-conf/home/includes/zsh.nix @@ -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