summaryrefslogtreecommitdiffstatshomepage
path: root/zsh/.config
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2023-02-08 16:54:46 -0600
committerToby Vincent <tobyv13@gmail.com>2023-02-08 16:54:46 -0600
commit416375b1358cc7cefcaf6b65e332a1cd12001295 (patch)
treebe528ae7d4e32c8f13bc395376a9c9c80d6392e5 /zsh/.config
parent43c974097a893eec37f61bcf93ab1ccbd4a0a546 (diff)
fix(zsh): enable meta-key bindings
Diffstat (limited to 'zsh/.config')
-rw-r--r--zsh/.config/zsh/.zshrc7
1 files changed, 5 insertions, 2 deletions
diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc
index f864f4c..039eb59 100644
--- a/zsh/.config/zsh/.zshrc
+++ b/zsh/.config/zsh/.zshrc
@@ -26,6 +26,11 @@ setopt nonomatch
zstyle ':completion:*' cache-path "$XDG_CACHE_HOME/zsh/zcompcache"
bindkey -v
+bindkey -m 2>/dev/null
+
+# TODO: improve this with terminfo validation
+#
+# See: https://wiki.archlinux.org/title/Zsh#Key_bindings
bindkey '^ ' autosuggest-accept
bindkey '^[[Z' reverse-menu-complete
bindkey '^[[1~' beginning-of-line
@@ -33,7 +38,6 @@ bindkey '^[[4~' end-of-line
bindkey '^[[3~' delete-char
bindkey '^[[1;5C' forward-word
bindkey '^[[1;5D' backward-word
-bindkey '^[q' push-input
bindkey -M vicmd '^ ' autosuggest-accept
bindkey -M vicmd '^[[Z' reverse-menu-complete
@@ -42,7 +46,6 @@ bindkey -M vicmd '^[[4~' end-of-line
bindkey -M vicmd '^[[3~' delete-char
bindkey -M vicmd '^[[1;5C' forward-word
bindkey -M vicmd '^[[1;5D' backward-word
-bindkey -M vicmd '^[q' push-input
alias ls="ls --color=auto"
alias tree="tree --gitignore"