Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 406 Bytes
#!/usr/bin/env ruby
# from http://github.com/mislav/dotfiles/tree/master
home = ENV['HOME']
Dir.chdir File.dirname(__FILE__) do
dotfiles_dir = Dir.pwd.sub(home + '/', '')
Dir['*'].each do |file|
next if file == 'install.rb'
target_name = file == 'bin' ? file : ".#{file}"
target = File.join(home, target_name)
system %[ln -vsf #{File.join(dotfiles_dir, file)} #{target}]
end
end