zsh: factor out completion config to a separate file

This commit is contained in:
Fernando Schauenburg 2022-02-01 18:36:13 +01:00
parent b56c174f0f
commit 400c9041fd
2 changed files with 12 additions and 10 deletions

View file

@ -4,6 +4,7 @@
# Source additional configurations if available.
while read -r f; do [ -f "$f" ] && source "$f"; done <<EOL
$ZDOTDIR/aliases
$ZDOTDIR/completion
$ZDOTDIR/prompt
$ZDOTDIR/vi-mode
EOL
@ -17,13 +18,3 @@ HISTFILE="${XDG_DATA_HOME:-$HOME/.local/share}/zsh/history"
HISTSIZE=1000000
SAVEHIST=1000000
autoload -Uz compinit && compinit
zstyle ':completion:*' matcher-list 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}'
zstyle ':completion:*' menu select
# bindkey -M menuselect 'h' vi-backward-char
# bindkey -M menuselect 'k' vi-up-line-or-history
# bindkey -M menuselect 'l' vi-forward-char
# bindkey -M menuselect 'j' vi-down-line-or-history

View file

@ -0,0 +1,11 @@
#!/bin/zsh
autoload -Uz compinit && compinit
zstyle ':completion:*' matcher-list 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}'
zstyle ':completion:*' menu select
# bindkey -M menuselect 'h' vi-backward-char
# bindkey -M menuselect 'k' vi-up-line-or-history
# bindkey -M menuselect 'l' vi-forward-char
# bindkey -M menuselect 'j' vi-down-line-or-history