c7c959de60add8371e08926d642b2bbb7406ce84

Author
Arthur Kalmenson <arthur.kalm@gmail.com>
Committer
Arthur Kalmenson <arthur.kalm@gmail.com>
Date

Message

Make the delete key work correctly, instead of outputting a ~

Diff

 1diff --git a/lib/key-bindings.zsh b/lib/key-bindings.zsh
 2index 7196a88ffe3de7e8b1f4e8327ed58f050f8898b8..e12d8010ebf9fbcd2df94b676ecf64685cf2c1a6 100644
 3--- a/lib/key-bindings.zsh
 4+++ b/lib/key-bindings.zsh
 5@@ -22,6 +22,10 @@ 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+
13 # consider emacs keybindings:
14 
15 #bindkey -e  ## emacs key bindings