Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 15 lines (11 sloc) 296 Bytes
#!/usr/bin/env ruby
# from http://errtheblog.com/posts/89-huba-huba
home = File.expand_path('~')
Dir['*'].each do |file|
puts file
next if file =~ /install/
target = File.join(home, ".#{file}")
command = "ln -fs #{File.expand_path file} #{target}"
puts command
system(command)
end