zsh: fix completions

This commit is contained in:
thek4n 2025-01-07 15:45:31 +03:00
parent 3c27faae0e
commit ebb19ef63b

View File

@ -3,6 +3,9 @@
# vim: ft=zsh # vim: ft=zsh
fpath=(~/.zfunc $fpath) fpath=(~/.zfunc $fpath)
zmodload zsh/complist zmodload zsh/complist
setopt menucomplete
autoload -Uz compinit
compinit -d ~/.cache/zsh/.zcompdump
zstyle ':completion:*' use-cache on zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path "${HOME}/.cache/zsh/.zcompcache" zstyle ':completion:*' cache-path "${HOME}/.cache/zsh/.zcompcache"
@ -37,7 +40,6 @@ zstyle ':completion:*:warnings' format ' %F{red}-- no matches found --%f'
bindkey '^N' menu-select
bindkey -M menuselect '^h' vi-backward-char bindkey -M menuselect '^h' vi-backward-char
bindkey -M menuselect '^k' vi-up-line-or-history bindkey -M menuselect '^k' vi-up-line-or-history
bindkey -M menuselect '^j' vi-down-line-or-history bindkey -M menuselect '^j' vi-down-line-or-history