Skip to content

Instantly share code, notes, and snippets.

@ladyrassilon
Last active December 18, 2015 13:13
Show Gist options
  • Save ladyrassilon/e2a6f9740b5167d7a27a to your computer and use it in GitHub Desktop.
Save ladyrassilon/e2a6f9740b5167d7a27a to your computer and use it in GitHub Desktop.
#!/bin/bash
echo 'cloning the repo'
git clone https://github.com/yyuu/pyenv.git ~/.pyenv
echo 'adding the magic to your bash profile'
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
echo 'export TMPDIR=~/.tmp' >> ~/.bash_profile
echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
echo 'reloading the bash profile'
source ~/.bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment