Skip to content

Commit

Permalink
Fix delete key in ZSH
Browse files Browse the repository at this point in the history
  • Loading branch information
rake5k committed Sep 21, 2023
1 parent 29e106b commit 15f290c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions home/users/christian/shell/zsh/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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)
'';
Expand Down

0 comments on commit 15f290c

Please sign in to comment.