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
This commit is contained in:
Misty De Meo committed 2012-09-13 09:39:33 -05:00
1 parent 3a052fe00b
commit f3f67535cd
1 file changed
+4 -3
+4 -3
View File
@@ -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