replaced if statements with pathman
authoradithyasunil26 <adithyasunil26@gmail.com>
Wed, 20 Jan 2021 07:34:49 +0000 (11:34 +0400)
committerAJ ONeal <coolaj86@gmail.com>
Wed, 27 Jan 2021 23:33:53 +0000 (16:33 -0700)
pyenv/install.sh

index c89a43ee772bd558ec2009d7b8c894d01aff3ac8..ffee0162cac7d56e0ea79d364944e83617319e72 100644 (file)
@@ -2,13 +2,6 @@
 
 {
     curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
-    if [ -n "`$SHELL -c 'echo $ZSH_VERSION'`" ]; then
-        echo 'export PATH="$HOME/.pyenv/bin:$PATH"'>> ~/.zshrc
-        echo 'eval "$(pyenv init -)"'>> ~/.zshrc
-        echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.zshrc
-    else
-        echo 'export PATH="$HOME/.pyenv/bin:$PATH"'>> ~/.bashrc
-        echo 'eval "$(pyenv init -)"'>> ~/.bashrc
-        echo 'eval "$(pyenv virtualenv-init -)"'>> ~/.bashrc
-    fi
+    pathman add ~/.pyenv
+    pathman add ~/.pyenv/shim    
 }