Skip to content

Instantly share code, notes, and snippets.

@todb-r7
Created January 15, 2016 05:46
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 todb-r7/7fd809ba963bbece9ff5 to your computer and use it in GitHub Desktop.
Save todb-r7/7fd809ba963bbece9ff5 to your computer and use it in GitHub Desktop.
Prompt for Ruby sanity
# RVM prompt, two line style.
function git-current-branch {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1) /'
}
export PS1="[\$(~/.rvm/bin/rvm-prompt)]\n\$(git-current-branch)$PS1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment