zsh: factor out completion config to a separate file
This commit is contained in:
parent
b56c174f0f
commit
400c9041fd
2 changed files with 12 additions and 10 deletions
|
@ -4,6 +4,7 @@
|
||||||
# Source additional configurations if available.
|
# Source additional configurations if available.
|
||||||
while read -r f; do [ -f "$f" ] && source "$f"; done <<EOL
|
while read -r f; do [ -f "$f" ] && source "$f"; done <<EOL
|
||||||
$ZDOTDIR/aliases
|
$ZDOTDIR/aliases
|
||||||
|
$ZDOTDIR/completion
|
||||||
$ZDOTDIR/prompt
|
$ZDOTDIR/prompt
|
||||||
$ZDOTDIR/vi-mode
|
$ZDOTDIR/vi-mode
|
||||||
EOL
|
EOL
|
||||||
|
@ -17,13 +18,3 @@ HISTFILE="${XDG_DATA_HOME:-$HOME/.local/share}/zsh/history"
|
||||||
HISTSIZE=1000000
|
HISTSIZE=1000000
|
||||||
SAVEHIST=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
|
|
||||||
|
|
||||||
|
|
||||||
|
|
11
zsh/.config/zsh/completion
Normal file
11
zsh/.config/zsh/completion
Normal 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
|
||||||
|
|
Loading…
Add table
Reference in a new issue