Initialize homebrew before asdf on MacOS
This commit is contained in:
parent
b24063125b
commit
fb7f5f7d67
1 changed files with 18 additions and 18 deletions
|
@ -2,6 +2,24 @@ export PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:${PATH
|
||||||
export LANG='en_US.UTF-8'
|
export LANG='en_US.UTF-8'
|
||||||
export PAGER='less -RF'
|
export PAGER='less -RF'
|
||||||
|
|
||||||
|
if [[ "$OSTYPE" =~ ^darwin ]]; then
|
||||||
|
if [ -x /opt/homebrew/bin/brew ]; then
|
||||||
|
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Use GNU tools if they're installed :D
|
||||||
|
for d in "${HOMEBREW_PREFIX}/opt"/*/libexec/gnubin; do
|
||||||
|
export PATH="$d:$PATH"
|
||||||
|
done
|
||||||
|
|
||||||
|
for TEST_PATH in /Applications/Tailscale{.localized,}/Tailscale.app/Contents/MacOS/Tailscale; do
|
||||||
|
if [ -x "$TEST_PATH" ]; then
|
||||||
|
alias tailscale="$TEST_PATH"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -r ~/.asdf/asdf.sh ]; then
|
if [ -r ~/.asdf/asdf.sh ]; then
|
||||||
ASDF_FORCE_PREPEND=1 . ~/.asdf/asdf.sh
|
ASDF_FORCE_PREPEND=1 . ~/.asdf/asdf.sh
|
||||||
fi
|
fi
|
||||||
|
@ -35,24 +53,6 @@ fi
|
||||||
|
|
||||||
export VISUAL="${EDITOR}"
|
export VISUAL="${EDITOR}"
|
||||||
|
|
||||||
if [[ "$OSTYPE" =~ ^darwin ]]; then
|
|
||||||
if [ -x /opt/homebrew/bin/brew ]; then
|
|
||||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Use GNU tools if they're installed :D
|
|
||||||
for d in "${HOMEBREW_PREFIX}/opt"/*/libexec/gnubin; do
|
|
||||||
export PATH="$d:$PATH"
|
|
||||||
done
|
|
||||||
|
|
||||||
for TEST_PATH in /Applications/Tailscale{.localized,}/Tailscale.app/Contents/MacOS/Tailscale; do
|
|
||||||
if [ -x "$TEST_PATH" ]; then
|
|
||||||
alias tailscale="$TEST_PATH"
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -d "${HOME}/bin" ]; then
|
if [ -d "${HOME}/bin" ]; then
|
||||||
export PATH="${HOME}/bin:${PATH}"
|
export PATH="${HOME}/bin:${PATH}"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue