From: adithyasunil26 Date: Wed, 20 Jan 2021 07:34:49 +0000 (+0400) Subject: replaced if statements with pathman X-Git-Url: https://git.josue.xyz/?a=commitdiff_plain;h=6b0212a48036df1bd4aef1a6dc0f17aa85c3612d;p=webi-installers%2F.git replaced if statements with pathman --- diff --git a/pyenv/install.sh b/pyenv/install.sh index c89a43e..ffee016 100644 --- a/pyenv/install.sh +++ b/pyenv/install.sh @@ -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 }