Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
This paste will be private.
#!/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/ target = File.join(home, ".#{file}") puts "installing #{File.expand_path file} to #{target}" `ln -s -i #{File.expand_path file} #{target}` end # git push on commit `echo 'git push' > .git/hooks/post-commit` `chmod 755 .git/hooks/post-commit`
Pasted May 11, 2008 1:56PM EDT
by monde
Channel #rubyonrails