replaced if statements with pathman

This commit is contained in:
adithyasunil26
2021-01-27 16:33:53 -07:00
committed by AJ ONeal
parent bec1c7f807
commit 6b0212a480
+2 -9
View 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
}