Skip to content

Commit

Permalink
Move old rvm garbage where it won't hurt
Browse files Browse the repository at this point in the history
  • Loading branch information
tpope committed Mar 29, 2014
1 parent 7bd5bf4 commit 9ab7df3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .ruby/lib/tpope.rb
@@ -1,13 +1,12 @@
$:.unshift(*%w(~/src/ruby/lib ~/.ruby/lib).map {|d| File.expand_path d})
$:.unshift('.') if $:.delete('.')

Gem.path.grep(/@global$/).each do |gemset|
$:.concat(Dir.glob("#{gemset}/gems/*").map { |gem| "#{gem}/lib" })
end if defined?(Bundler)
$:.uniq!

begin
require 'rubygems'
Gem.path.grep(/@global$/).each do |gemset|
$:.concat(Dir.glob("#{gemset}/gems/*").map { |gem| "#{gem}/lib" })
end if defined?(Bundler)
$:.uniq!
rescue LoadError
end

Expand Down

0 comments on commit 9ab7df3

Please sign in to comment.