From 2bd7d59b3597074a4c77c184ad40474f7f3e208a Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Tue, 29 Oct 2024 09:37:22 +0200 Subject: [PATCH] zshrc: exclude insecure directories from compinit --- rc/zshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rc/zshrc b/rc/zshrc index 96474deb..c41257fc 100755 --- a/rc/zshrc +++ b/rc/zshrc @@ -116,7 +116,9 @@ bindkey -e # Use modern completion system 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:*' completer _expand _complete _correct _approximate