summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2011-05-13 02:52:25 -0700
committerRobby Russell <robby@planetargon.com>2011-05-13 02:52:25 -0700
commitd275440219f5a3d7659606d41a05c78c2c286a7b (patch)
tree02322e67e88601ff4d6ca0895fa05c4024d51794 /lib
parent396dc787af5702a73936df5dd5f769b480346d4c (diff)
parent7d9628b2dcccb5627c59380de331e3c906c8164d (diff)
downloadzsh-d275440219f5a3d7659606d41a05c78c2c286a7b.tar.gz
zsh-d275440219f5a3d7659606d41a05c78c2c286a7b.tar.bz2
zsh-d275440219f5a3d7659606d41a05c78c2c286a7b.zip
Merge pull request #290 from arthurkalm/delete-key-working
Make the delete key work correctly, instead of outputting a ~
Diffstat (limited to 'lib')
-rw-r--r--lib/key-bindings.zsh5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/key-bindings.zsh b/lib/key-bindings.zsh
index c7ad907d7..9f28d5761 100644
--- a/lib/key-bindings.zsh
+++ b/lib/key-bindings.zsh
@@ -20,6 +20,11 @@ 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
+bindkey "\e[3~" delete-char
+
# consider emacs keybindings:
#bindkey -e ## emacs key bindings