From 6497b218972155d544eac065f401598e49a8631c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gregor=20B=C3=BCckendorf?= Date: Mon, 24 Jun 2019 14:04:31 +0200 Subject: [PATCH] bashrc.d: Overwrite system python with brew python3 via PATH precedence --- .bashrc.d/brew_caveats.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.bashrc.d/brew_caveats.sh b/.bashrc.d/brew_caveats.sh index b74b695..8734236 100644 --- a/.bashrc.d/brew_caveats.sh +++ b/.bashrc.d/brew_caveats.sh @@ -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