github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

relevance / etc

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 100
    • 7
  • Source
  • Commits
  • Network (7)
  • Issues (1)
  • Graphs
  • Tree: c0f4ad6

click here to add a description

click here to add a homepage

  • Branches (1)
    • master
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

bash scripts, aliases, other misc things go here — Read more

  cancel

http://opensource.thinkrelevance.com

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

jruby switcher 
muness (author)
Fri Feb 20 11:44:35 -0800 2009
commit  c0f4ad613c208eb80a239e1c986ecc9e29aa1d9e
tree    3f3b67315c8771fb09a86bbc064077aaed4aa835
parent  1124bdc7ba608f11c16b31994bee2233514b3fb2
etc / bash / ruby_switcher.sh bash/ruby_switcher.sh
100644 42 lines (35 sloc) 0.929 kb
edit raw blame history
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
function use_ruby_186 {
 export MY_RUBY_HOME=/System/Library/Frameworks/Ruby.framework/Versions/Current/usr
 export GEM_HOME=~/.gem/ruby/1.8
 update_path
}
 
function use_jruby_116 {
# after installing JRuby:
# ln -s /opt/jruby-1.1.6/bin/jruby /opt/jruby-1.1.6/bin/ruby
 export MY_RUBY_HOME=/opt/jruby-1.1.6
 export GEM_HOME=~/.gem/jruby/1.8
 update_path
}
 
function use_ree_186 {
 export MY_RUBY_HOME=/opt/ruby-enterprise-1.8.6-20090201
 export GEM_HOME=~/.gem/ruby/1.8
 update_path
}
 
function use_ruby_191 {
 export MY_RUBY_HOME=~/.ruby_versions/ruby_191
 export GEM_HOME=~/.gem/ruby/1.9
 update_path
}
 
function update_path {
 export PATH=$GEM_HOME/bin:$MY_RUBY_HOME/bin:$PATH
 export RUBY_VERSION="$(ruby -v | colrm 11)"
 display_ruby_version
}
 
function display_ruby_version {
 if [[ $SHELL =~ "bash" ]]; then
echo "Using $RUBY_VERSION"
 fi
 # On ZSH, show it on the right PS1
 export RPS1=$RUBY_VERSION
}
 
use_ruby_186
 
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server