1
0
mirror of https://github.com/akelge/zsh synced 2025-07-04 05:29:06 +00:00
This commit is contained in:
2021-10-29 06:41:24 +02:00
parent d6aa0053e9
commit 2a0691f654
3 changed files with 3 additions and 11 deletions

View File

@ -10,6 +10,8 @@ for prefix in /usr/local /opt/homebrew; do
brew=$(whence $prefix/bin/brew)
if [ $brew ]; then
eval "$($brew shellenv)"
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
break
fi
done

View File

@ -1,11 +0,0 @@
if type brew &>/dev/null;then
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
#
# Reload compinit and bashcompinit, to parse brew installed completions
autoload -U compinit
autoload bashcompinit
compinit -u
bashcompinit
fi