From fe72eff573820ea141e712c2e445878093053509 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Tue, 31 Oct 2023 08:58:30 -0700 Subject: [PATCH] Update user python paths --- assets/default/dotfiles/bashrc | 6 +++++- assets/default/dotfiles/zshrc | 6 +++++- assets/default/fish/init/paths.fish | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/assets/default/dotfiles/bashrc b/assets/default/dotfiles/bashrc index 2131d34..33d3212 100644 --- a/assets/default/dotfiles/bashrc +++ b/assets/default/dotfiles/bashrc @@ -35,7 +35,11 @@ elif [[ "$DET_OS" == "mac" ]]; then # Fix Python path on OSX to avoid considering System extras over newer versions # Local - export PATH=$HOME/Library/Python/3.9/bin:$HOME/Library/Python/2.7/bin:$PATH + export PATH=$HOME/Library/Python/2.7/bin:$PATH + export PATH=$HOME/Library/Python/3.8/bin:$PATH + export PATH=$HOME/Library/Python/3.9/bin:$PATH + export PATH=$HOME/Library/Python/3.10/bin:$PATH + export PATH=$HOME/Library/Python/3.11/bin:$PATH # Python path is causing other issues # export PYTHONPATH=$HOME/Library/Python/2.7/lib/python/site-packages:$PYTHONPATH # MacPorts and system diff --git a/assets/default/dotfiles/zshrc b/assets/default/dotfiles/zshrc index 1eabdb3..4a75b51 100644 --- a/assets/default/dotfiles/zshrc +++ b/assets/default/dotfiles/zshrc @@ -35,7 +35,11 @@ elif [[ "$DET_OS" == "mac" ]]; then # Fix Python path on OSX to avoid considering System extras over newer versions # Local - export PATH=$HOME/Library/Python/3.9/bin:$HOME/Library/Python/2.7/bin:$PATH + export PATH=$HOME/Library/Python/2.7/bin:$PATH + export PATH=$HOME/Library/Python/3.8/bin:$PATH + export PATH=$HOME/Library/Python/3.9/bin:$PATH + export PATH=$HOME/Library/Python/3.10/bin:$PATH + export PATH=$HOME/Library/Python/3.11/bin:$PATH # Python path is causing other issues # export PYTHONPATH=$HOME/Library/Python/2.7/lib/python/site-packages:$PYTHONPATH # MacPorts and system diff --git a/assets/default/fish/init/paths.fish b/assets/default/fish/init/paths.fish index c0545da..81bf767 100644 --- a/assets/default/fish/init/paths.fish +++ b/assets/default/fish/init/paths.fish @@ -41,6 +41,7 @@ if [ $det_os = "mac" ] _maybe_set -p PATH "$HOME/Library/Python/3.8/bin" _maybe_set -p PATH "$HOME/Library/Python/3.9/bin" _maybe_set -p PATH "$HOME/Library/Python/3.10/bin" + _maybe_set -p PATH "$HOME/Library/Python/3.11/bin" # set -gx PYTHONPATH $HOME/Library/Python/2.7/lib/python/site-packages:$PYTHONPATH # Macports _maybe_set -a PATH /opt/local/Library/Frameworks/Python.framework/Versions/Current/bin