Skip to content

Instantly share code, notes, and snippets.

@charsyam
Created September 9, 2019 16:27
Show Gist options
  • Save charsyam/0a186d393a91dea78ecf0c860eae6ef3 to your computer and use it in GitHub Desktop.
Save charsyam/0a186d393a91dea78ecf0c860eae6ef3 to your computer and use it in GitHub Desktop.
pyenv_init.sh
#!/bin/bash
SHELLRC=~/.bash_profile
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> $SHELLRC
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> $SHELLRC
echo 'eval "$(pyenv init -)"' >> $SHELLRC
git clone https://github.com/yyuu/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv
echo 'eval "$(pyenv virtualenv-init -)"' >> $SHELLRC
git clone git://github.com/kennethreitz/autoenv.git ~/.autoenv
echo 'source ~/.autoenv/activate.sh' >> $SHELLRC
echo "run source $SHELLRC"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment