4cdffcd4858c7818e5325c03909d75e41995eeae

Author
Marc Cornellà <marc.cornella@live.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

init: cut down on the number of compaudit calls

Diff

 1diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh
 2index d7c68d35c7513f0beadb5ed39c50d1a6b82e4636..4f6bfd5a5384a7443871fdba251611631c63a3fa 100644
 3--- a/oh-my-zsh.sh
 4+++ b/oh-my-zsh.sh
 5@@ -69,14 +69,12 @@ fi
 6 
 7 if [[ $ZSH_DISABLE_COMPFIX != true ]]; then
 8   # If completion insecurities exist, warn the user
 9-  if ! compaudit &>/dev/null; then
10-    handle_completion_insecurities
11-  fi
12+  handle_completion_insecurities
13   # Load only from secure directories
14-  compinit -i -d "${ZSH_COMPDUMP}"
15+  compinit -i -C -d "${ZSH_COMPDUMP}"
16 else
17   # If the user wants it, load from all found directories
18-  compinit -u -d "${ZSH_COMPDUMP}"
19+  compinit -u -C -d "${ZSH_COMPDUMP}"
20 fi
21 
22 # Load all of the plugins that were defined in ~/.zshrc