Skip to content

Instantly share code, notes, and snippets.

@davist11
Created January 31, 2011 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davist11/804528 to your computer and use it in GitHub Desktop.
Save davist11/804528 to your computer and use it in GitHub Desktop.
.bash_profile
alias getpath='pwd | tr -d "\r\n" | pbcopy'
alias ls='ls -lah'
alias go='git checkout'
alias gitdel='git ls-files --deleted | xargs git rm'
source ~/scripts/git-completion.bash
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
PS1="\[\e[01;31m\]\w \$(parse_git_branch): \[\e[00m\]"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.export GEM_HOME='/usr/local/Cellar/gems/1.8'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment