From 4821c4881aba8372178c26ddefccde998ccda0f0 Mon Sep 17 00:00:00 2001 From: "kebler.net" Date: Thu, 18 Feb 2021 09:49:14 -0800 Subject: [PATCH] ignore pyenv setup if pyenv not installed --- all/lang/python | 3 +++ 1 file changed, 3 insertions(+) diff --git a/all/lang/python b/all/lang/python index c132eae..7d6be6b 100644 --- a/all/lang/python +++ b/all/lang/python @@ -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