perf(completion): let Oh My Zsh own initialization
A single completion setup avoids duplicate initialization. Homebrew already exports its prefix during environment setup, so resolving it again adds an unnecessary subprocess.
This commit is contained in:
@@ -40,13 +40,10 @@ plugins=(
|
|||||||
|
|
||||||
fpath+=$ZSH/custom/plugins/zsh-completions/src
|
fpath+=$ZSH/custom/plugins/zsh-completions/src
|
||||||
|
|
||||||
if [[ "$OSTYPE" == "darwin"* ]] && command -v brew &> /dev/null; then
|
if [[ "$OSTYPE" == "darwin"* && -n "$HOMEBREW_PREFIX" ]]; then
|
||||||
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
|
fpath=("$HOMEBREW_PREFIX/share/zsh/site-functions" ${fpath:#$HOMEBREW_PREFIX/share/zsh/site-functions})
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p ~/.cache/zsh
|
|
||||||
autoload -U compinit && compinit -C -d ~/.cache/zsh/.zcompdump
|
|
||||||
|
|
||||||
SAVEHIST=50000
|
SAVEHIST=50000
|
||||||
|
|
||||||
cheat() {
|
cheat() {
|
||||||
|
|||||||
Reference in New Issue
Block a user