Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: bbf6226113
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (13 sloc) 0.423 kb
#!/usr/bin/env ruby
# from http://errtheblog.com/posts/89-huba-huba
home = ENV['HOME']
Dir.chdir File.dirname(__FILE__) do
dotfiles_dir = Dir.pwd.sub(home + '/', '')
Dir['*'].each do |file|
next if %w[Rakefile README LICENSE install.rb].include? file
target = File.join(home, ".#{file}")
unless File.exist? target
system %[ln -vsf #{File.join(dotfiles_dir, file)} #{target}]
end
end
end
Jump to Line
Something went wrong with that request. Please try again.