Load insecure completion files if compfix is disabled
We have to assume that if people disabled the compfix system they really want
their completion to work, ignoring any permission issues.
Fixes #5651
Fixes #5957
Fixes #6461
Diff
1diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh
2index 7f78e4140da5ccae7094572ed34908e9359b571c..c0e2ba8f6a636403dd162e3c741b329a1f90f969 100644
3--- a/oh-my-zsh.sh
4+++ b/oh-my-zsh.sh
5@@ -11,8 +11,6 @@ fpath=($ZSH/functions $ZSH/completions $fpath)
6 # Load all stock functions (from $fpath files) called below.
7 autoload -U compaudit compinit
8 9-: ${ZSH_DISABLE_COMPFIX:=true}
10-
11 # Set ZSH_CUSTOM to the path where your custom config files
12 # and plugins exists, or else we will use the default custom/
13 if [[ -z "$ZSH_CUSTOM" ]]; then
14@@ -74,7 +72,7 @@ if [[ $ZSH_DISABLE_COMPFIX != true ]]; then
15 compinit -d "${ZSH_COMPDUMP}"
16 fi
17 else
18- compinit -i -d "${ZSH_COMPDUMP}"
19+ compinit -u -d "${ZSH_COMPDUMP}"
20 fi
2122 # Load all of the plugins that were defined in ~/.zshrc