summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Kalmenson <arthur.kalm@gmail.com>2011-04-19 19:01:18 -0400
committerArthur Kalmenson <arthur.kalm@gmail.com>2011-04-19 19:01:18 -0400
commitc7c959de60add8371e08926d642b2bbb7406ce84 (patch)
tree0b90d525804f2689dd07d657735b869b76faa406
parent971b071dc67f423d8b2a6f476e1dd58819049f41 (diff)
downloadzsh-c7c959de60add8371e08926d642b2bbb7406ce84.tar.gz
zsh-c7c959de60add8371e08926d642b2bbb7406ce84.tar.bz2
zsh-c7c959de60add8371e08926d642b2bbb7406ce84.zip
Make the delete key work correctly, instead of outputting a ~
-rw-r--r--lib/key-bindings.zsh4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/key-bindings.zsh b/lib/key-bindings.zsh
index 7196a88ff..e12d8010e 100644
--- a/lib/key-bindings.zsh
+++ b/lib/key-bindings.zsh
@@ -22,6 +22,10 @@ bindkey ' ' magic-space # also do history expansion on space
bindkey '^[[Z' reverse-menu-complete
+# Make the delete key (or Fn + Delete on the Mac) work instead of outputting a ~
+bindkey "^[[3~" delete-char
+bindkey "^[3;5~" delete-char
+
# consider emacs keybindings:
#bindkey -e ## emacs key bindings