Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: bce5945291
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (13 sloc) 0.465 kb
#!/usr/bin/env ruby
# originally from
# from http://errtheblog.com/posts/89-huba-huba
home = File.expand_path(ENV['HOME'])
Dir['*'].each do |file|
next if file =~ /install/i || file =~ /readme/i || file =~ /bin/i
target = File.join(home, ".#{file}")
puts "installing #{File.expand_path file} to #{target}"
`ln -sf #{File.expand_path file} #{target}`
end
# git push on commit
`echo 'git push' > .git/hooks/post-commit`
`chmod 755 .git/hooks/post-commit`
Jump to Line
Something went wrong with that request. Please try again.