update user bin setup

This commit is contained in:
arshavindn 2018-10-05 00:39:01 +07:00
parent e6fe4a529b
commit 789425cc74

View file

@ -24,14 +24,14 @@ elif (( $+commands[python] )); then
# Prepend PEP 370 per user site packages directory, which defaults to # Prepend PEP 370 per user site packages directory, which defaults to
# ~/Library/Python on macOS and ~/.local elsewhere, to PATH. The # ~/Library/Python on macOS and ~/.local elsewhere, to PATH. The
# path can be overridden using PYTHONUSERBASE. # path can be overridden using PYTHONUSERBASE.
if [[ -n "$PYTHONUSERBASE" ]]; then # if [[ -n "$PYTHONUSERBASE" ]]; then
path=($PYTHONUSERBASE/bin $path) # path=($PYTHONUSERBASE/bin $path)
elif [[ "$OSTYPE" == darwin* ]]; then # elif [[ "$OSTYPE" == darwin* ]]; then
path=($HOME/Library/Python/*/bin(N) $path) # path=($HOME/Library/Python/*/bin(N) $path)
else # else
# This is subject to change. # # This is subject to change.
path=($HOME/.local/bin $path) # path=($HOME/.local/bin $path)
fi # fi
fi fi
function _python-workon-cwd { function _python-workon-cwd {