zsh: compaudit is slow, disabling
This commit is contained in:
parent
1edde395bd
commit
fad37218f3
1 changed files with 11 additions and 11 deletions
22
.zshrc
22
.zshrc
|
@ -214,16 +214,16 @@ export LESS_TERMCAP_us=$'\E[01;36m'
|
||||||
export LESS=-R
|
export LESS=-R
|
||||||
autoload -Uz compinit colors zcalc
|
autoload -Uz compinit colors zcalc
|
||||||
# only do full compinit once per day, use cached version usually
|
# only do full compinit once per day, use cached version usually
|
||||||
if ! compaudit &>/dev/null; then
|
# if ! compaudit &>/dev/null; then
|
||||||
echo "WARNING!"
|
# echo "WARNING!"
|
||||||
echo " the following directories contain completions that have the wrong file permissions to be considered safe."
|
# echo " the following directories contain completions that have the wrong file permissions to be considered safe."
|
||||||
compaudit
|
# compaudit
|
||||||
echo " completions not loaded"
|
# echo " completions not loaded"
|
||||||
echo
|
# echo
|
||||||
echo "Please fix this and then continue"
|
# echo "Please fix this and then continue"
|
||||||
echo " (note, this command might help: compaudit | xargs chmod g-w,o-w)"
|
# echo " (note, this command might help: compaudit | xargs chmod g-w,o-w)"
|
||||||
echo
|
# echo
|
||||||
else
|
# else
|
||||||
if ! [[ -o extendedglob ]]; then setopt extendedglob; undo_setopt=true; fi
|
if ! [[ -o extendedglob ]]; then setopt extendedglob; undo_setopt=true; fi
|
||||||
if [[ -n ${ZDOTDIR}/.zcompdump(#qN.mh+24) ]]; then
|
if [[ -n ${ZDOTDIR}/.zcompdump(#qN.mh+24) ]]; then
|
||||||
compinit
|
compinit
|
||||||
|
@ -231,7 +231,7 @@ else
|
||||||
compinit -C
|
compinit -C
|
||||||
fi
|
fi
|
||||||
if [[ undo_setopt = true ]]; then unsetopt extendedglob; fi
|
if [[ undo_setopt = true ]]; then unsetopt extendedglob; fi
|
||||||
fi
|
# fi
|
||||||
colors
|
colors
|
||||||
# <<<
|
# <<<
|
||||||
# auto save and load working dir (allow `cd -` on start) >>>
|
# auto save and load working dir (allow `cd -` on start) >>>
|
||||||
|
|
Loading…
Add table
Reference in a new issue