summaryrefslogtreecommitdiff
path: root/oh-my-zsh.sh
diff options
context:
space:
mode:
Diffstat (limited to 'oh-my-zsh.sh')
-rw-r--r--oh-my-zsh.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh
index d7c68d35c..e080257c1 100644
--- a/oh-my-zsh.sh
+++ b/oh-my-zsh.sh
@@ -44,6 +44,7 @@ is_plugin() {
test -f $base_dir/plugins/$name/$name.plugin.zsh \
|| test -f $base_dir/plugins/$name/_$name
}
+
# Add all defined plugins to fpath. This must be done
# before running compinit.
for plugin ($plugins); do
@@ -51,6 +52,8 @@ for plugin ($plugins); do
fpath=($ZSH_CUSTOM/plugins/$plugin $fpath)
elif is_plugin $ZSH $plugin; then
fpath=($ZSH/plugins/$plugin $fpath)
+ else
+ echo "Warning: plugin $plugin not found"
fi
done
@@ -69,14 +72,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