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:
parent
278735e651
commit
ac6c018776
7
.bashrc
7
.bashrc
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user