aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2020-11-23 15:48:09 -0300
committerSilvio Rhatto <rhatto@riseup.net>2020-11-23 15:48:09 -0300
commitdf47baf09c5dc56562ffd95ae4434e9999f9fcd5 (patch)
tree4811822d15602f339dfd7f844434cc56be6f2640
parent26d3670a594b956b28e4d9013ec176da121e4778 (diff)
downloadprofile-df47baf09c5dc56562ffd95ae4434e9999f9fcd5.tar.gz
profile-df47baf09c5dc56562ffd95ae4434e9999f9fcd5.tar.bz2
Feat: pyenv support
-rw-r--r--profile.dot.link12
1 files changed, 12 insertions, 0 deletions
diff --git a/profile.dot.link b/profile.dot.link
index e90b9af..2d88f0c 100644
--- a/profile.dot.link
+++ b/profile.dot.link
@@ -336,6 +336,18 @@ if [ -e "$HOME/apps/python" ]; then
fi
fi
+# Pyenv
+if [ -e "$HOME/.pyenv" ]; then
+ export PYENV_ROOT="$HOME/.pyenv"
+ export PATH="$PYENV_ROOT/bin:$PATH"
+
+ #if command -v pyenv 1> /dev/null 2>&1; then
+ if [ -e "$HOME/.pyenv/bin/pyenv" ]; then
+ #eval "$(pyenv init -)"
+ eval "$($HOME/.pyenv/bin/pyenv init -)"
+ fi
+fi
+
# Start the powerline daemon
# See http://powerline.readthedocs.io/en/master/usage/shell-prompts.html
if [ -x "/usr/bin/powerline-daemon" ]; then