Edit This Rails

This is the bash alias Josh mentioned in his blog post last week about Textmate hanging.

alias etr="mate app config config.ru db Gemfile* lib Rakefile README test vendor/assets"

“etr” stands for “Edit This (Directory) Rails”, and it’ll open Textmate with only the specific directories you want in your project sidebar. Swap mate with “subl” for Sublime, or whatever your editor of choice is.

Note: Looks like I picked it up from Peepcode years ago. Here’s a slew of useful aliases found on Github (pick and choose with a grain of salt): 
https://github.com/jjb/dotfiles/blob/master/common/aliases

Blog comments powered by Disqus