Skip to content

Instantly share code, notes, and snippets.

@luishurtado
Last active December 21, 2015 03:18
Show Gist options
  • Save luishurtado/6240897 to your computer and use it in GitHub Desktop.
Save luishurtado/6240897 to your computer and use it in GitHub Desktop.
Terminal config
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
PS1="\[\033[1;33m\]\u\[\033[0m\]@\h:\[\033[31m\][\w -> \$(parse_git_branch)\[\e[m\]\[\033[31m\]\$(~/.rvm/bin/rvm-prompt v g)]\[\033[0m\]\\n$ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment