Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (13 sloc) 423 Bytes
#!/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