mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-22 04:11:58 +00:00
Merge pull request #4426 from apjanke/turn-off-3889-by-default
completion: turn off the #3889 compfix check by default
This commit is contained in:
commit
a9c882094d
1 changed files with 12 additions and 6 deletions
|
@ -11,6 +11,8 @@ fpath=($ZSH/functions $ZSH/completions $fpath)
|
||||||
# Load all stock functions (from $fpath files) called below.
|
# Load all stock functions (from $fpath files) called below.
|
||||||
autoload -U compaudit compinit
|
autoload -U compaudit compinit
|
||||||
|
|
||||||
|
: ${ZSH_DISABLE_COMPFIX:=true}
|
||||||
|
|
||||||
# Set ZSH_CUSTOM to the path where your custom config files
|
# Set ZSH_CUSTOM to the path where your custom config files
|
||||||
# and plugins exists, or else we will use the default custom/
|
# and plugins exists, or else we will use the default custom/
|
||||||
if [[ -z "$ZSH_CUSTOM" ]]; then
|
if [[ -z "$ZSH_CUSTOM" ]]; then
|
||||||
|
@ -62,6 +64,7 @@ if [ -z "$ZSH_COMPDUMP" ]; then
|
||||||
ZSH_COMPDUMP="${ZDOTDIR:-${HOME}}/.zcompdump-${SHORT_HOST}-${ZSH_VERSION}"
|
ZSH_COMPDUMP="${ZDOTDIR:-${HOME}}/.zcompdump-${SHORT_HOST}-${ZSH_VERSION}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $ZSH_DISABLE_COMPFIX != true ]]; then
|
||||||
# If completion insecurities exist, warn the user without enabling completions.
|
# If completion insecurities exist, warn the user without enabling completions.
|
||||||
if ! compaudit &>/dev/null; then
|
if ! compaudit &>/dev/null; then
|
||||||
# This function resides in the "lib/compfix.zsh" script sourced above.
|
# This function resides in the "lib/compfix.zsh" script sourced above.
|
||||||
|
@ -70,6 +73,9 @@ if ! compaudit &>/dev/null; then
|
||||||
else
|
else
|
||||||
compinit -d "${ZSH_COMPDUMP}"
|
compinit -d "${ZSH_COMPDUMP}"
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
compinit -i -d "${ZSH_COMPDUMP}"
|
||||||
|
fi
|
||||||
|
|
||||||
# Load all of the plugins that were defined in ~/.zshrc
|
# Load all of the plugins that were defined in ~/.zshrc
|
||||||
for plugin ($plugins); do
|
for plugin ($plugins); do
|
||||||
|
|
Loading…
Reference in a new issue