bashrc.d: Overwrite system python with brew python3 via PATH precedence
This commit is contained in:
parent
fb6b54d444
commit
6497b21897
1 changed files with 4 additions and 1 deletions
|
@ -3,8 +3,11 @@ if [[ $OSTYPE != darwin* ]]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# brew formula bash-completion
|
# for brew formula bash-completion@2
|
||||||
if [[ -r /usr/local/etc/profile.d/bash_completion.sh ]]; then
|
if [[ -r /usr/local/etc/profile.d/bash_completion.sh ]]; then
|
||||||
export BASH_COMPLETION_COMPAT_DIR=/usr/local/etc/bash_completion.d
|
export BASH_COMPLETION_COMPAT_DIR=/usr/local/etc/bash_completion.d
|
||||||
. /usr/local/etc/profile.d/bash_completion.sh
|
. /usr/local/etc/profile.d/bash_completion.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# for brew formula python
|
||||||
|
export PATH=/usr/local/opt/python/libexec/bin:$PATH
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue