Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Bash profile
# Git autocomplete script:
# curl -OL
source /Users/jdamcd/git-completion.bash
alias checkout='git checkout'
alias clone='git clone'
alias la='ls -la'
alias gh='github'
alias code='cd /Users/jdamcd/Dropbox/Code'
export M2_HOME=/Users/jdamcd/apache-maven-3.0.3
export M2=$M2_HOME/bin
export PATH=/Users/jdamcd/bin:/Users/jdamcd/android-sdks/platform-tools:/Users/jdamcd/android-sdks/tools:$M2:$PATH
export PATH="/usr/local/heroku/bin:$PATH"
export ANDROID_HOME=/Users/jdamcd/android-sdks
export EDITOR=subl
# Show git branch
function parse_git_branch_and_add_brackets {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\ \[\1\]/'
PS1="\h:\W \u\[\033[0;32m\]\$(parse_git_branch_and_add_brackets) \[\033[0m\]\$ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment