Skip to content

Instantly share code, notes, and snippets.

@james-see
Created November 23, 2023 00:30
Show Gist options
  • Save james-see/59665feb3215b709da2268c6b58e341f to your computer and use it in GitHub Desktop.
Save james-see/59665feb3215b709da2268c6b58e341f to your computer and use it in GitHub Desktop.
homebrew & pyenv mac os 2023
eval "$(/opt/homebrew/bin/brew shellenv)"
alias brew='env PATH="${PATH//$(pyenv root)\/shims:/}" brew'
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment