From 410ab56b1141e0201804d6c69fc0c3d6b1e371a7 Mon Sep 17 00:00:00 2001 From: Martin Polden Date: Sat, 6 Jan 2024 12:39:19 +0100 Subject: zsh: move keybinding --- zshrc | 8 ++++---- 1 file 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 -- cgit v1.2.3