zshrc: exclude insecure directories from compinit

This commit is contained in:
Aminda Suomalainen 2024-10-29 09:37:22 +02:00
parent ded5ed45e0
commit 2bd7d59b35
No known key found for this signature in database

View File

@ -116,7 +116,9 @@ bindkey -e
# Use modern completion system # Use modern completion system
autoload -Uz compinit autoload -Uz compinit
compinit # -i = exclude insecure directories, -u would disable security checks
# https://github.com/zsh-users/zsh/blob/zsh-5.9/Completion/compinit#L67-L72
compinit -i
zstyle ':completion:*' auto-description 'specify: %d' zstyle ':completion:*' auto-description 'specify: %d'
zstyle ':completion:*' completer _expand _complete _correct _approximate zstyle ':completion:*' completer _expand _complete _correct _approximate