Make the delete key work correctly, instead of outputting a ~
| ... | ... |
@@ -20,6 +20,11 @@ bindkey ' ' magic-space # also do history expansion on space |
| 20 | 20 |
|
| 21 | 21 |
bindkey '^[[Z' reverse-menu-complete |
| 22 | 22 |
|
| 23 |
+# Make the delete key (or Fn + Delete on the Mac) work instead of outputting a ~ |
|
| 24 |
+bindkey "^[[3~" delete-char |
|
| 25 |
+bindkey "^[3;5~" delete-char |
|
| 26 |
+bindkey "\e[3~" delete-char |
|
| 27 |
+ |
|
| 23 | 28 |
# consider emacs keybindings: |
| 24 | 29 |
|
| 25 | 30 |
#bindkey -e ## emacs key bindings |