bashrc.d: Overwrite system python with brew python3 via PATH precedence

This commit is contained in:
Gregor Bückendorf 2019-06-24 14:04:31 +02:00
parent fb6b54d444
commit 6497b21897

View file

@ -3,8 +3,11 @@ if [[ $OSTYPE != darwin* ]]; then
return
fi
# brew formula bash-completion
# for brew formula bash-completion@2
if [[ -r /usr/local/etc/profile.d/bash_completion.sh ]]; then
export BASH_COMPLETION_COMPAT_DIR=/usr/local/etc/bash_completion.d
. /usr/local/etc/profile.d/bash_completion.sh
fi
# for brew formula python
export PATH=/usr/local/opt/python/libexec/bin:$PATH