diff options
author | Martin Polden <mpolden@mpolden.no> | 2024-01-06 12:39:19 +0100 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2024-01-06 12:39:19 +0100 |
commit | 410ab56b1141e0201804d6c69fc0c3d6b1e371a7 (patch) | |
tree | 301389738ed5728e635295cd88fd30a1534bc90c | |
parent | 13518b6e1ea7c9d5af8b6d03e450997b7cd2c69d (diff) |
zsh: move keybinding
-rw-r--r-- | zshrc | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |