From 416375b1358cc7cefcaf6b65e332a1cd12001295 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Wed, 8 Feb 2023 16:54:46 -0600 Subject: fix(zsh): enable meta-key bindings --- zsh/.config/zsh/.zshrc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'zsh/.config') 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" -- cgit v1.2.3-70-g09d2