Created
January 15, 2016 05:46
-
-
Save todb-r7/7fd809ba963bbece9ff5 to your computer and use it in GitHub Desktop.
Prompt for Ruby sanity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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