Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (32 sloc) 1.02 KB
case ":$PATH:" in
*:$HOME/bin:*) ;; # do nothing if $PATH already contains $HOME/bin
*) PATH=$HOME/bin:$PATH ;; # in every other case, add it to the front
esac
if [[ -f /usr/local/bin/brew ]]; then
export PATH=$PATH:/usr/local/sbin
export PATH=$PATH:/usr/local/bin
fi
if [[ -d $HOME/.gem/ruby/1.9/bin ]]; then
export PATH=$PATH:$HOME/.gem/ruby/1.9/bin
fi
if [[ -d $HOME/node_modules/.bin ]]; then
export PATH=$PATH:$HOME/node_modules/.bin
fi
if [[ -d $HOME/.cabal/bin ]]; then
export PATH=$PATH:$HOME/.cabal/bin
fi
if type go &> /dev/null; then
export GOROOT=$(go env GOROOT)
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
fi
if [[ -d ~/perl5 ]]; then
if type perl &> /dev/null; then
eval $(perl -I ~/perl5/lib/perl5 -Mlocal::lib);
fi
fi
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export CDPATH=$HOME:$HOME/projects:$GOPATH/src/github.com:$GOPATH/src/bitbucket.org
export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper_lazy.sh