Skip to content

Instantly share code, notes, and snippets.

@rummelonp
Forked from Shinpeim/.bashrc
Created May 19, 2012 16:19
Show Gist options
  • Save rummelonp/2731379 to your computer and use it in GitHub Desktop.
Save rummelonp/2731379 to your computer and use it in GitHub Desktop.
PS1='`~/.current_rb_ver`'
ruby -v | sed -e 's/ruby \([0-9]*.[0-9]*.[0-9]*\).*/\1/'
.current_rb_verを~/に置いて実行権限つければよい
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment