Skip to content

Instantly share code, notes, and snippets.

@edhedges
Created February 11, 2012 21:14
Show Gist options
  • Save edhedges/1804266 to your computer and use it in GitHub Desktop.
Save edhedges/1804266 to your computer and use it in GitHub Desktop.
My .bashrc
# Setting PATH for Python 2.7
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
export PATH
export WORKON_HOME=$HOME/virtualenvs
export PROJECT_HOME=$HOME/projects
source /usr/local/bin/virtualenvwrapper.sh
mkdjangoproj () {
mkproject --no-site-packages --prompt=$1: $1 &&
git init &&
git pull git@github.com:edhedges/eds-djangoplate.git master &&
rm README.md &&
pip install -r requirements.txt &&
chmod +x manage.py
./manage.py new_secret &&
./manage.py syncdb &&
./manage.py runserver
}
#Also note that in my .bash_profile and .bash_profile.pysave I have this line: source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment