1
0
mirror of https://github.com/meineerde/dotfiles.git synced 2025-10-17 19:41:01 +00:00

Load Homebrew using recommended brew --shellenv

This commit is contained in:
Holger Just 2025-01-20 22:30:52 +01:00
parent 278735e651
commit ac6c018776

View File

@ -74,12 +74,9 @@ if [[ $- =~ 'i' ]]; then
stty -ixon
fi
# OS specific config.
case `uname` in
Darwin)
alias ls='ls -G'
export PG_DATA=/usr/local/var/postgres
gitx() {
@ -103,6 +100,10 @@ case `uname` in
java -version
}
# Homebrew
[[ -x /usr/local/bin/brew ]] && eval "$(/usr/local/bin/brew shellenv)"
[[ -x /opt/homebrew/bin/brew ]] && eval "$(/opt/homebrew/bin/brew shellenv)"
# Bash completion
if [[ -f "$(brew --prefix)/etc/bash_completion" ]]; then
. "$(brew --prefix)/etc/bash_completion"