dotfiles/home/dot_config/zsh/mod/completion.zsh
2025-11-07 09:15:09 +00:00

20 lines
488 B
Bash

### completion
### =================
# use tab to select
zstyle ':completion:*' menu select
# substring matching
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
# use cache
zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path "$XDG_CACHE_HOME/zsh/.zcompcache"
# Colours in completion
zstyle ':completion:*' list-colors ''${(s.:.)LS_COLORS}
# Complete . and .. special directories
zstyle ':completion:*' special-dirs true