Skip to content

Instantly share code, notes, and snippets.

@oleander
Created March 7, 2011 13:14
Show Gist options
  • Save oleander/858486 to your computer and use it in GitHub Desktop.
Save oleander/858486 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby -w
puts $1 if `rvm-prompt` =~ /(\d{1}\.\d{1}.\d{1})/
# .bash_profile
# => export PS1="$(ruby-version-nice)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment