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:
parent
e4d6de0abc
commit
5ce864176a
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user