Files
dotfiles/config/shell/.config/zsh/conf.d/02-completions.zsh
T
2026-04-01 14:06:08 +02:00

23 lines
587 B
Bash

fpath=(~/.zfunc $fpath)
# Cache compinit: only regenerate dump once daily
autoload -Uz compinit
if [[ -n ${ZDOTDIR:-$HOME}/.zcompdump(#qN.mh+24) ]]; then
compinit
else
compinit -C
fi
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
zstyle ':completion:*' menu select
zstyle ':completion:*' squeeze-slashes true
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
zstyle ':completion:*:descriptions' format '%F{cyan}-- %d --%f'
zstyle ':completion:*:warnings' format '%F{red}-- no matches --%f'
# Jujutsu
if (( $+commands[jj] )); then
source <(jj util completion zsh)
fi