Skip to content

Commit 09c6415

Browse files
committed
agent: pyenv/brew load order
1 parent 59db679 commit 09c6415

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

files/home/.profile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,16 @@ else
7676
fi
7777
unset node_alias VERSION node_bin_path
7878

79+
# Load homebrew
80+
# -----------------------------------------------------------------------------
81+
_dots_load_brew() {
82+
export HOMEBREW_NO_ANALYTICS=1
83+
if [ -x "/opt/homebrew/bin/brew" ]; then
84+
eval "$(/opt/homebrew/bin/brew shellenv)" || _dots_warn "Failed to initialize homebrew"
85+
fi
86+
}
87+
_dots_load_brew
88+
7989
# Initialise and load Python
8090
# -----------------------------------------------------------------
8191
export PYENV_ROOT=${PYENV_ROOT:-"$HOME/.pyenv"}
@@ -120,13 +130,3 @@ fi
120130
if [ -f ~/.aliases ]; then
121131
source ~/.aliases
122132
fi
123-
124-
# Load homebrew
125-
# -----------------------------------------------------------------------------
126-
_dots_load_brew() {
127-
export HOMEBREW_NO_ANALYTICS=1
128-
if [ -x "/opt/homebrew/bin/brew" ]; then
129-
eval "$(/opt/homebrew/bin/brew shellenv)" || _dots_warn "Failed to initialize homebrew"
130-
fi
131-
}
132-
_dots_load_brew

0 commit comments

Comments
 (0)