Skip to content

Instantly share code, notes, and snippets.

@azengard
Created June 29, 2017 21:55
Show Gist options
  • Save azengard/d3b63e0b4e1b8747d6bdf4fa78da1127 to your computer and use it in GitHub Desktop.
Save azengard/d3b63e0b4e1b8747d6bdf4fa78da1127 to your computer and use it in GitHub Desktop.
Configuration history for bash on windows with HB setup.
cd ~
sudo apt install git
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
exec $SHELL
git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc
exec "$SHELL"
vim .bashrc
sudo pyenv install 2.7.13
git clone https://github.com/yyuu/pyenv-virtualenvwrapper.git ~/.pyenv/plugins/pyenv-virtualenvwrapper
mkdir ~/.ve
mkdir ~/workspace
vim .bashrc
sudo apt install python2.7
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev
pyenv install 3.6.0
pyenv install 2.7.13
pyenv virtualenv 3.6.0 jupyter3
pyenv virtualenv 3.6.0 tools3
pyenv virtualenv 2.7.13 ipython2
pyenv virtualenv 2.7.13 tools2
pyenv activate jupyter3
pip install jupyter
python -m ipykernel install --user
pyenv deactivate
pyenv activate ipython2
pip install ipykernel
python -m ipykernel install --user
pyenv deactivate
pyenv activate tools3
pip install youtube-dl gnucash-to-beancount rows
pyenv deactivate
pyenv activate tools2
pip install rename s3cmd fabric mercurial
pyenv deactivate
pyenv global 3.6.0 2.7.13 jupyter3 ipython2 tools3 tools2
ipython profile create
curl -L http://hbn.link/hb-ipython-startup-script > ~/.ipython/profile_default/startup/00-venv-sitepackages.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment