mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-12 21:39:48 +01:00
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
This commit is contained in:
parent
0aa645f803
commit
afba4f6b9f
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue