Browse Source

feat: add all python installs to PATH

Kyle P Davis 3 years ago
parent
commit
b33ceec64a
1 changed files with 3 additions and 1 deletions
  1. 3 1
      .profile

+ 3 - 1
.profile

@@ -9,7 +9,9 @@ export PATH="$PATH:$HOME/.local/bin:$HOME/bin"
 
 # Setup user-specific Python overrides
 if [ "$OS" = "Darwin" ]; then
-	export PATH="$HOME/Library/Python/2.7/bin:$PATH:$HOME/bin"
+	for PY_DIR in "$HOME/Library/Python/"*/; do
+		export PATH="$PY_DIR/bin:$PATH"
+	done
 fi
 
 # Homebrew