浏览代码

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

Arthur Kalmenson 13 年之前
父节点
当前提交
c7c959de60
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      lib/key-bindings.zsh

+ 4 - 0
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