ignore pyenv setup if pyenv not installed

trantor
Kebler Network System Administrator 2021-02-18 09:49:14 -08:00
parent c626220967
commit 4821c4881a
1 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,8 @@ alias pipi="pipx install"
alias pipl="pipx list"
alias piplv="pipx list --verbose"
if command -v pyenv >/dev/null 2>&1; then
# pyenv environment
path_append "/opt/python/bin"
@ -29,6 +31,7 @@ path_append "/opt/python/apps/bin"
export PIPX_HOME=/opt/python/apps
export PIPX_BIN_DIR=$PIPX_HOME/bin
fi
spipua () {
module_load confirm