summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2019-02-25 21:30:00 +0100
committerMarc Cornellà <marc.cornella@live.com>2019-02-25 21:30:00 +0100
commit4cdffcd4858c7818e5325c03909d75e41995eeae (patch)
treef828cdac8e6f70a57476f28ca5ad042b0188b6c7
parentf99b58a37c20c7c66bd34059c37e73851b6f5ec6 (diff)
downloadzsh-4cdffcd4858c7818e5325c03909d75e41995eeae.tar.gz
zsh-4cdffcd4858c7818e5325c03909d75e41995eeae.tar.bz2
zsh-4cdffcd4858c7818e5325c03909d75e41995eeae.zip
init: cut down on the number of compaudit calls
-rw-r--r--oh-my-zsh.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh
index d7c68d35c..4f6bfd5a5 100644
--- a/oh-my-zsh.sh
+++ b/oh-my-zsh.sh
@@ -69,14 +69,12 @@ fi
if [[ $ZSH_DISABLE_COMPFIX != true ]]; then
# If completion insecurities exist, warn the user
- if ! compaudit &>/dev/null; then
- handle_completion_insecurities
- fi
+ handle_completion_insecurities
# Load only from secure directories
- compinit -i -d "${ZSH_COMPDUMP}"
+ compinit -i -C -d "${ZSH_COMPDUMP}"
else
# If the user wants it, load from all found directories
- compinit -u -d "${ZSH_COMPDUMP}"
+ compinit -u -C -d "${ZSH_COMPDUMP}"
fi
# Load all of the plugins that were defined in ~/.zshrc