diff options
| author | Misty De Meo | 2012-09-10 12:28:00 -0500 |
|---|---|---|
| committer | Misty De Meo | 2012-09-13 09:39:33 -0500 |
| commit | f3f67535cd5f0127f856cb5ccc8afdc274ea54b0 (patch) | |
| tree | 47f014ea9c7fda4e02460b2fca64d349d103b88c /Library/Homebrew/cmd/edit.rb | |
| parent | 3a052fe00b3dc86eaed243e175cc49b041249b0c (diff) | |
| download | homebrew-f3f67535cd5f0127f856cb5ccc8afdc274ea54b0.tar.bz2 | |
edit: create project view with subl, too
Sublime Text's subl tool supports lovely project views just the same
as TextMate. Since I use Sublime, I want good support from `brew
edit` too. :P
Diffstat (limited to 'Library/Homebrew/cmd/edit.rb')
| -rw-r--r-- | Library/Homebrew/cmd/edit.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/edit.rb b/Library/Homebrew/cmd/edit.rb index 27dd4b026..34440024c 100644 --- a/Library/Homebrew/cmd/edit.rb +++ b/Library/Homebrew/cmd/edit.rb @@ -13,9 +13,10 @@ module Homebrew extend self # If no brews are listed, open the project root in an editor. if ARGV.named.empty? editor = File.basename which_editor - if editor == "mate" - # If the user is using TextMate, give a nice project view instead. - exec 'mate', HOMEBREW_REPOSITORY+"bin/brew", + if editor == "mate" or editor == "subl" + # If the user is using TextMate or Sublime Text, + # give a nice project view instead. + exec editor, HOMEBREW_REPOSITORY+"bin/brew", HOMEBREW_REPOSITORY+'README.md', HOMEBREW_REPOSITORY+".gitignore", *library_folders |
