mirror of
https://github.com/meineerde/dotfiles.git
synced 2026-02-06 00:53:23 +00:00
Pip on Mountain Lion installs executables to /usr/local/share/python
This commit is contained in:
parent
e2b0d01923
commit
1b47edb380
5
.bashrc
5
.bashrc
@ -101,13 +101,14 @@ case `uname` in
|
||||
# Find correct python bin path with multiple Pythons installed by Homebrew
|
||||
if [[ "$(which python)" =~ ^/usr/local/bin ]]; then
|
||||
# Python comes from Homebrew
|
||||
export PATH="/usr/local/share/python:$PATH"
|
||||
for p in $(ls -1d /usr/local/Cellar/python/*/bin | sort -r); do
|
||||
export PATH=$p:$PATH
|
||||
export PATH="$p:$PATH"
|
||||
done
|
||||
fi
|
||||
for p in /usr/local/*/bin /usr/*/bin; do
|
||||
if [[ -n "$p" ]]; then
|
||||
export PATH=$p:$PATH
|
||||
export PATH="$p:$PATH"
|
||||
fi
|
||||
done
|
||||
unset p
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user