summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2018-05-15 21:22:47 +0200
committerGitHub <noreply@github.com>2018-05-15 21:22:47 +0200
commitafba4f6b9feb3a9dde4331cd2ed892c4da2df6e3 (patch)
treebfac897a0dac9cd2756b5174d47ffa78da7eb0b2
parent0aa645f8033ef86f8c8b0729a94fc54fbec49a25 (diff)
downloadzsh-afba4f6b9feb3a9dde4331cd2ed892c4da2df6e3.tar.gz
zsh-afba4f6b9feb3a9dde4331cd2ed892c4da2df6e3.tar.bz2
zsh-afba4f6b9feb3a9dde4331cd2ed892c4da2df6e3.zip
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
-rw-r--r--oh-my-zsh.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh
index 7f78e4140..c0e2ba8f6 100644
--- a/oh-my-zsh.sh
+++ b/oh-my-zsh.sh
@@ -11,8 +11,6 @@ fpath=($ZSH/functions $ZSH/completions $fpath)
# Load all stock functions (from $fpath files) called below.
autoload -U compaudit compinit
-: ${ZSH_DISABLE_COMPFIX:=true}
-
# Set ZSH_CUSTOM to the path where your custom config files
# and plugins exists, or else we will use the default custom/
if [[ -z "$ZSH_CUSTOM" ]]; then
@@ -74,7 +72,7 @@ if [[ $ZSH_DISABLE_COMPFIX != true ]]; then
compinit -d "${ZSH_COMPDUMP}"
fi
else
- compinit -i -d "${ZSH_COMPDUMP}"
+ compinit -u -d "${ZSH_COMPDUMP}"
fi
# Load all of the plugins that were defined in ~/.zshrc