d275440219f5a3d7659606d41a05c78c2c286a7b
- Author
- Robby Russell <robby@planetargon.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Merge pull request #290 from arthurkalm/delete-key-working
Make the delete key work correctly, instead of outputting a ~
Diff
1diff --git a/lib/key-bindings.zsh b/lib/key-bindings.zsh
2index c7ad907d782d61c51f6e62bd03dbf960712285df..9f28d57615cc2a6165f6d68eb99b1d25b1a77f61 100644
3--- a/lib/key-bindings.zsh
4+++ b/lib/key-bindings.zsh
5@@ -20,6 +20,11 @@ bindkey ' ' magic-space # also do history expansion on space
6
7 bindkey '^[[Z' reverse-menu-complete
8
9+# Make the delete key (or Fn + Delete on the Mac) work instead of outputting a ~
10+bindkey "^[[3~" delete-char
11+bindkey "^[3;5~" delete-char
12+bindkey "\e[3~" delete-char
13+
14 # consider emacs keybindings:
15
16 #bindkey -e ## emacs key bindings