mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-10-14 15:49:09 +00:00
homebrew: Load standard Homebrew environment variables into shell session.
However, guard for legacy Homebrew as `brew shellenv` is relatively new.
This commit is contained in:
committed by
Kaleb Elwert
parent
dd7a26e219
commit
2bbf5d0687
@@ -10,6 +10,16 @@ if [[ "$OSTYPE" != (darwin|linux)* ]]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
#
|
||||
# Environmental Variables
|
||||
#
|
||||
|
||||
# Load standard Homebrew shellenv into the shell session.
|
||||
# `brew shellenv` is relatively new, guard for legacy Homebrew.
|
||||
if (( $+commands[brew] )); then
|
||||
eval "$(brew shellenv 2> /dev/null)"
|
||||
fi
|
||||
|
||||
#
|
||||
# Aliases
|
||||
#
|
||||
|
Reference in New Issue
Block a user