Add ~/Library/Python bins to path when they exist

This commit is contained in:
Danielle McLean 2022-01-28 10:52:55 +11:00
parent 09033f007a
commit 0c569f6907
Signed by: 00dani
GPG key ID: 9DDE1EDE01E3A605

View file

@ -47,6 +47,7 @@ newbins+=($XDG_CONFIG_HOME/composer/vendor/bin)
# python # python
export -UT PYTHONPATH pythonpath export -UT PYTHONPATH pythonpath
newbins+=(~/Library/Python/*/bin(N))
# pipenv already uses $XDG_DATA_HOME, but pyenv doesn't, so we need to # pipenv already uses $XDG_DATA_HOME, but pyenv doesn't, so we need to
# configure it explicitly. # configure it explicitly.
export PYENV_ROOT=$XDG_DATA_HOME/pyenv export PYENV_ROOT=$XDG_DATA_HOME/pyenv