Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: fd26f6fadd
Fetching contributors…

Cannot retrieve contributors at this time

executable file 17 lines (12 sloc) 0.426 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 file == 'install.rb' || file == 'additional'
target_name = file == 'bin' ? file : ".#{file}"
target = File.join(home, target_name)
system %[ln -vsf #{File.join(dotfiles_dir, file)} #{target}]
end
end
Jump to Line
Something went wrong with that request. Please try again.