aboutsummaryrefslogtreecommitdiff
path: root/zsh/key-bindings.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'zsh/key-bindings.zsh')
-rw-r--r--zsh/key-bindings.zsh22
1 files changed, 22 insertions, 0 deletions
diff --git a/zsh/key-bindings.zsh b/zsh/key-bindings.zsh
new file mode 100644
index 0000000..b63a68b
--- /dev/null
+++ b/zsh/key-bindings.zsh
@@ -0,0 +1,22 @@
+# TODO: figure these out
+
+autoload -U compinit
+compinit -i
+
+bindkey -e
+bindkey '\ew' kill-region
+bindkey -s '\el' "ls\n"
+bindkey -s '\e.' "..\n"
+bindkey '^r' history-incremental-search-backward
+bindkey "^[[5~" up-line-or-history
+bindkey "^[[6~" down-line-or-history
+
+bindkey "^[[H" beginning-of-line
+bindkey "^[[1~" beginning-of-line
+bindkey "^[[F" end-of-line
+bindkey "^[[4~" end-of-line
+bindkey ' ' magic-space # also do history expansion on space
+
+bindkey '^[[Z' reverse-menu-complete
+
+bindkey "\e[3~" delete-char # make sure delete key works