Created
October 23, 2010 12:09
-
-
Save chsh/642132 to your computer and use it in GitHub Desktop.
Show ruby version and gemset name on RPROMPT using rvm-prompt
This file contains hidden or 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
| _update_rprompt () { | |
| if [ "`git ls-files 2>/dev/null`" ]; then | |
| RPROMPT="[$(rvm-prompt v g):%2.:$GIT_CURRENT_BRANCH]" | |
| else | |
| # RPROMPT="[%~]" | |
| RPROMPT="[$(rvm-prompt v g):%2.]" | |
| fi | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you use rvm. This is easiest way to display ruby version and gemset name.