Skip to content

Instantly share code, notes, and snippets.

@ddaws
Last active August 29, 2015 13:59
Show Gist options
  • Save ddaws/10978981 to your computer and use it in GitHub Desktop.
Save ddaws/10978981 to your computer and use it in GitHub Desktop.
#!/bin/bash
WORKON_HOME=$HOME/.virtualenv
if [ ! -d "$WORKON_HOME" ]; then
pip install virtualenvwrapper
export WORKON_HOME=$WORKON_HOME
mkdir -p $WORKON_HOME
source /usr/local/bin/virtualenvwrapper.sh
echo 'source /usr/local/bin/virtualenvwrapper.sh' >> $HOME/.bashrc
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment