From 15f290c8ee045fb8a6decb572c61ca9aa68b4c7c Mon Sep 17 00:00:00 2001 From: Christian Harke Date: Tue, 19 Sep 2023 23:32:06 +0200 Subject: [PATCH] Fix delete key in ZSH --- home/users/christian/shell/zsh/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/home/users/christian/shell/zsh/default.nix b/home/users/christian/shell/zsh/default.nix index b2825b6e..0a3b8bd6 100644 --- a/home/users/christian/shell/zsh/default.nix +++ b/home/users/christian/shell/zsh/default.nix @@ -45,6 +45,12 @@ with lib; share = true; size = historySize; }; + initExtra = '' + # Fix for https://superuser.com/questions/997593/why-does-zsh-insert-a-when-i-press-the-delete-key + bindkey "^[[3~" delete-char + # Fix for https://stackoverflow.com/questions/43249043/bind-delete-key-in-vi-mode + bindkey -a '^[[3~' vi-delete-char + ''; initExtraBeforeCompInit = '' fpath=(~/.zsh/completion $fpath) '';