Make Textmate your $EDITOR of choice

If you are a master of Vim and feel like a sea-change, or if you're just plain scared, you can set up Textmate as your default editor.

Whack this in your .profile (e.g. ~/.bash_profile), re-source it ( source ~/.bash_profile ), and off you go.

Filed under  //

Posted by

Comments [0]

Great .gitignore file(s) for your next Rails project

Here's great rails template snippet to set up .gitignore files throughout your whole Rails project.

It ignores unnecessary files in the root .gitignore, plus it ensures no vendor/ directories are checked into git.

 
run "touch tmp/.gitignore log/.gitignore vendor/.gitignore" 
 
run %{find . -type d -empty | grep -v "vendor" | grep -v ".git" | grep -v "tmp" | xargs -I xxx touch xxx/.gitignore} 
 
file '.gitignore', <<-EOS.gsub(/^ /, '') 
.DS_Store 
log/*.log 
tmp/**/* 
config/database.yml 
config/initializers/site_keys.rb 
db/*.sqlite3 
EOS 
 

Filed under  //

Posted by

Comments [0]