Skip to content

Instantly share code, notes, and snippets.

@qoda
Created June 4, 2014 16:13
Show Gist options
  • Save qoda/2cf9b55c3f184fc8656f to your computer and use it in GitHub Desktop.
Save qoda/2cf9b55c3f184fc8656f to your computer and use it in GitHub Desktop.
# add homebrew executables to bash
export PATH=/usr/local/bin:$PATH
# bash prettify
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
# git bash completion via brew
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
# show git branch in prompt
parse_git_branch () {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
PS1="\u@\h:\w\$(parse_git_branch) $ "
# added komodo to the command line
alias komodo='open -a "Komodo Edit 8"'
# load rvm into a shell session *as a function*
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
# virtualenv auto activation
[[ -s "$HOME/.virtualenvhelper" ]] && . "$HOME/.virtualenvhelper"
cd .
# set the correct lang
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
# python
export PYTHONPATH="/usr/local/lib/python2.7/site-packages:$PYTHONPATH"
# android sdk
export ANDROID_SDK=/Development/ADT/sdk
# fix clang issues
export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments
# default remote user
export REMOTE_USER="jonathanb"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment