summaryrefslogtreecommitdiff
path: root/lib/key-bindings.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/key-bindings.zsh')
-rw-r--r--lib/key-bindings.zsh8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/key-bindings.zsh b/lib/key-bindings.zsh
index 2e282d66a..9f28d5761 100644
--- a/lib/key-bindings.zsh
+++ b/lib/key-bindings.zsh
@@ -1,6 +1,4 @@
# TODO: Explain what some of this does..
-autoload -U compinit
-compinit -i
bindkey -e
bindkey '\ew' kill-region
@@ -20,6 +18,12 @@ bindkey "^[[F" end-of-line
bindkey "^[[4~" end-of-line
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: