aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2024-01-06 12:39:19 +0100
committerMartin Polden <mpolden@mpolden.no>2024-01-06 12:39:19 +0100
commit410ab56b1141e0201804d6c69fc0c3d6b1e371a7 (patch)
tree301389738ed5728e635295cd88fd30a1534bc90c
parent13518b6e1ea7c9d5af8b6d03e450997b7cd2c69d (diff)
zsh: move keybinding
-rw-r--r--zshrc8
1 files changed, 4 insertions, 4 deletions
diff --git a/zshrc b/zshrc
index 5697f04..2ad7d9c 100644
--- a/zshrc
+++ b/zshrc
@@ -139,10 +139,6 @@ zstyle ':completion:*:(ssh|scp|rsync):*:hosts-host' ignored-patterns '*(.|:)*' l
zstyle ':completion:*:(ssh|scp|rsync):*:hosts-domain' ignored-patterns '<->.<->.<->.<->' '^[-[:alnum:]]##(.[-[:alnum:]]##)##' '*@*'
zstyle ':completion:*:(ssh|scp|rsync):*:hosts-ipaddr' ignored-patterns '^(<->.<->.<->.<->|(|::)([[:xdigit:].]##:(#c,2))##(|%*))' '127.0.0.<->' '255.255.255.255' '::1' 'fe80::*'
-# Bind Shift + Tab to go to the previous menu item.
-# kcbt might not be defined in all terminals
-[[ -n "$terminfo[kcbt]" ]] && bindkey -M emacs "$terminfo[kcbt]" reverse-menu-complete
-
#
# Terminal. Adapted from the prezto terminal module.
#
@@ -272,6 +268,10 @@ esac
# Always use Emacs keybindings (never consider $EDITOR)
bindkey -e
+# Bind Shift + Tab to go to the previous menu item.
+# kcbt might not be defined in all terminals
+[[ -n "$terminfo[kcbt]" ]] && bindkey -M emacs "$terminfo[kcbt]" reverse-menu-complete
+
# Allow command line editing in an external editor.
autoload -Uz edit-command-line
zle -N edit-command-line