ZSH Config: set completion options & speed up completions

This commit is contained in:
Aroy-Art 2025-01-11 20:48:33 +01:00
parent 6d66e4afcf
commit 7d28e99e3e
Signed by: Aroy
GPG key ID: 583642324A1D2070

View file

@ -13,6 +13,13 @@ setopt histignorealldups # If a new comma
setopt autocd # if only directory path is entered, cd there.
setopt inc_append_history # save commands are added to the history immediately, otherwise only when shell exits.
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' # Case insensitive tab completion
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}" # Colored completion (different colors for dirs/files/etc)
zstyle ':completion:*' rehash true # automatically find new executables in path
# Speed up completions
zstyle ':completion:*' accept-exact '*(N)'
zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path ~/.zsh/cache
####################################################################################################################################################