Skip to content

Instantly share code, notes, and snippets.

@spastorino
Created June 7, 2014 19:02
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 spastorino/65d412559f733efb7288 to your computer and use it in GitHub Desktop.
Save spastorino/65d412559f733efb7288 to your computer and use it in GitHub Desktop.
~ cat .zshenv
source /usr/local/opt/chruby/share/chruby/chruby.sh
source /usr/local/opt/chruby/share/chruby/auto.sh
chruby 2.2
~ ruby -v
ruby 2.2.0dev (2014-06-05 trunk 46357) [x86_64-darwin13]
~ cd /tmp/2_1_project
/tmp/2_1_project ruby -v
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]
/tmp/2_1_project cd
~ ruby -v
ruby 2.0.0p451 (2014-02-24 revision 45167) [universal.x86_64-darwin13]
# I want this last one to be 2.2.0dev instead of system Ruby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment