Skip to content

Instantly share code, notes, and snippets.

@vgdub
Created August 16, 2012 22:45
Show Gist options
  • Save vgdub/3374295 to your computer and use it in GitHub Desktop.
Save vgdub/3374295 to your computer and use it in GitHub Desktop.
.bash_profile
export PATH="/usr/local/bin:/usr/local/sbin:~/bin:$PATH"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function
parse_git_branch() {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\ →\ \1/'
}
export PS1='\u\[\e[1;37m\]@\[\e[1;32m\]\h\[\e[1;37m\]:\[\e[1;31m\]\W\[\e[1;33m\]$(parse_git_branch)\[\e[0;39m\]> '
export PROMPT_COMMAND='echo -ne "\033]0;${PWD}\007"'
export BUNDLER_EDITOR=subl
export EDITOR=subl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment