]> gitweb.fluxo.info Git - rhatto/dotfiles/profile.git/commitdiff
Feat: pyenv support
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 23 Nov 2020 18:48:09 +0000 (15:48 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 23 Nov 2020 18:48:09 +0000 (15:48 -0300)
profile.dot.link

index e90b9af29fb721620c5e3231c280ca827710faf4..2d88f0cbfd2c4c06fdb802f01b1bf9f98ba72f02 100644 (file)
@@ -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