diff --git a/modules/python/init.zsh b/modules/python/init.zsh index e9a74d47..1f0821d1 100644 --- a/modules/python/init.zsh +++ b/modules/python/init.zsh @@ -11,6 +11,16 @@ if [[ "$OSTYPE" == darwin* ]]; then path=($HOME/Library/Python/*/bin(N) $path) manpath=($HOME/Library/Python/*/{,share/}man(N) $manpath) + _brew_py="/usr/local/share/python" + _brew_py3="/usr/local/share/python3" + + if [[ -s "$_brew_py" ]]; then + path=("$_brew_py" $path) + fi + + if [[ -s "$_brew_py3" ]]; then + path=("$_brew_py3" $path) + fi else # This is subject to change. path=($HOME/.local/bin $path)