This commit is contained in:
Andrea Mistrali 2021-10-29 06:41:24 +02:00
parent d6aa0053e9
commit 2a0691f654
No known key found for this signature in database
GPG Key ID: 6FB0A77F6D5DA9B2
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) brew=$(whence $prefix/bin/brew)
if [ $brew ]; then if [ $brew ]; then
eval "$($brew shellenv)" eval "$($brew shellenv)"
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
break
fi fi
done 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

1
zshrc
View File

@ -7,6 +7,7 @@
# Global Order: zshenv, zprofile, zshrc, zlogin # Global Order: zshenv, zprofile, zshrc, zlogin
# #
zmodload zsh/zprof
# Determine zsh conf file position. On Debian/Ubuntu is /etc/zsh, on other should be /etc # Determine zsh conf file position. On Debian/Ubuntu is /etc/zsh, on other should be /etc
# #
[ -d /etc/zsh ] && BASE="/etc/zsh" || BASE="/etc" [ -d /etc/zsh ] && BASE="/etc/zsh" || BASE="/etc"