From 1b47edb3802ce0bc132380c25fb9d1e88aa23d1a Mon Sep 17 00:00:00 2001 From: Holger Just Date: Mon, 18 Feb 2013 14:05:03 +0100 Subject: [PATCH] Pip on Mountain Lion installs executables to /usr/local/share/python --- .bashrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index b25e75e..11cd174 100644 --- a/.bashrc +++ b/.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