mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-30 04:29:50 -05:00
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:
1 parent
3a052fe00b
commit
f3f67535cd
1 file changed
+4
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user