fix powerline on mac after installing to user location

This commit is contained in:
JesseBot 2023-05-20 10:27:51 +02:00
parent 3cbbeac24c
commit acc374b99d
No known key found for this signature in database
GPG key ID: C01D207CE04D55D9

View file

@ -41,7 +41,9 @@ if [[ $(uname) == *"Linux"* ]]; then
export PYTHONUSERBASE=$XDG_DATA_HOME
fi
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ macOS PATH ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #
# powerline - a fancy extensible prompt: https://powerline.readthedocs.io
if [[ $(uname) == *"Darwin"* ]]; then
# iterm2 specific commands and functions
@ -57,8 +59,11 @@ if [[ $(uname) == *"Darwin"* ]]; then
pip_packages="/opt/homebrew/$pip_path_suffix"
else
# For older macs before the M1, pre-2020, WITHOUT apple silicon
export PATH=$HOME/Library/Python/$PYTHON_VERSION/bin:$PATH
pip_packages="/usr/local/$pip_path_suffix"
export PATH="$XDG_DATA_HOME/python/bin:$PATH"
pip_packages="$XDG_DATA_HOME/python/lib/python/site-packages"
# these lines below used to work, but stopped for some reason...
# pip_packages="/usr/local/$pip_path_suffix"
# export PATH=$HOME/Library/Python/$PYTHON_VERSION/bin:$PATH
fi
# Load GNU sed, called gsed, instead of MacOS's POSIX sed