mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-08-07 06:08:39 +02:00
perf: avoid duplicate completion security audit (#13873)
This commit is contained in:
parent
898b579cf5
commit
a4a224b3fe
1 changed files with 3 additions and 1 deletions
|
|
@ -124,9 +124,11 @@ fi
|
||||||
if [[ "$ZSH_DISABLE_COMPFIX" != true ]]; then
|
if [[ "$ZSH_DISABLE_COMPFIX" != true ]]; then
|
||||||
source "$ZSH/lib/compfix.zsh"
|
source "$ZSH/lib/compfix.zsh"
|
||||||
# Load only from secure directories
|
# Load only from secure directories
|
||||||
|
# Reset the flag compinit sets when -i excludes insecure entries
|
||||||
|
unset _comp_secure
|
||||||
compinit -i -d "$ZSH_COMPDUMP"
|
compinit -i -d "$ZSH_COMPDUMP"
|
||||||
# If completion insecurities exist, warn the user
|
# If completion insecurities exist, warn the user
|
||||||
handle_completion_insecurities &|
|
[[ "$_comp_secure" == yes ]] && handle_completion_insecurities &|
|
||||||
else
|
else
|
||||||
# If the user wants it, load from all found directories
|
# If the user wants it, load from all found directories
|
||||||
compinit -u -d "$ZSH_COMPDUMP"
|
compinit -u -d "$ZSH_COMPDUMP"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue