Skip to content

Instantly share code, notes, and snippets.

@psy-q
Created October 17, 2011 07:29
Show Gist options
  • Save psy-q/1292127 to your computer and use it in GitHub Desktop.
Save psy-q/1292127 to your computer and use it in GitHub Desktop.
Can't switch rubies in a bash script
#!/bin/bash
ruby -v # Returns ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]
/usr/local/rvm/bin/rvm use 1.9.2 # Outputs: Using /usr/local/rvm/gems/ruby-1.9.2-p290
ruby -v # Returns ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment