From 6b0212a48036df1bd4aef1a6dc0f17aa85c3612d Mon Sep 17 00:00:00 2001 From: adithyasunil26 Date: Wed, 20 Jan 2021 11:34:49 +0400 Subject: [PATCH] replaced if statements with pathman --- pyenv/install.sh | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) 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 } -- 2.25.1