Skip to content

Instantly share code, notes, and snippets.

@chintak
Last active January 1, 2016 23:38
Show Gist options
  • Save chintak/8217379 to your computer and use it in GitHub Desktop.
Save chintak/8217379 to your computer and use it in GitHub Desktop.
# .bash_profile
#-----------------------
alias ls='ls -G'
alias ipn="cd ~/Notebooks/; ipython notebook --pylab=inline"
alias crp="cd ~/Documents/Repositories"
alias si2="workon skimage2; crp; cd scikit-image"
alias newvirtualenv="source ~/Documents/venv/new_env.sh $1"
export PS1="\e[0;31m\h: \W$ \e[m"
# Homebrew
export PATH=/usr/local/bin:$PATH
# Homebrew Python
export PATH=/usr/local/share/python:$PATH
# Virtualenvwrapper
export WORKON_HOME=~/Documents/venv
source /usr/local/bin/virtualenvwrapper.sh
# pip should only run if there is a virtualenv currently activated
export PIP_REQUIRE_VIRTUALENV=true
# cache pip-installed packages to avoid re-downloading
export PIP_DOWNLOAD_CACHE=$HOME/.pip/cache
# To upgrade global packages initially installed use syspip
# syspip install --upgrade pip setuptools virtualenv
syspip(){
PIP_REQUIRE_VIRTUALENV="" pip "$@"
}
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
#-------------------------------------------
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
export PATH=/usr/local/bin:$PATH
brew install python
export PATH=/usr/local/share/python:$PATH
brew install gfortran
pip install virtualenv virtualenvwrapper
export WORKON_HOME=~/Documents/venv/
mkvirtualenv --relocatable dev_pack2
pip install numpy scipy
sudo chmod 777 /usr/local/share/man/man5
brew install libpng
export CC=clang
export CXX=clang++
export LDFLAGS="-L/usr/X11/lib"
export CFLAGS="-I/usr/X11/include -I/usr/X11/include/freetype2"
pip install matplotlib
pip install pyzmq MarkupSafe jinja2 tornado readline nose ipython
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment