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 no brews are listed, open the project root in an editor.
|
||||||
if ARGV.named.empty?
|
if ARGV.named.empty?
|
||||||
editor = File.basename which_editor
|
editor = File.basename which_editor
|
||||||
if editor == "mate"
|
if editor == "mate" or editor == "subl"
|
||||||
# If the user is using TextMate, give a nice project view instead.
|
# If the user is using TextMate or Sublime Text,
|
||||||
exec 'mate', HOMEBREW_REPOSITORY+"bin/brew",
|
# give a nice project view instead.
|
||||||
|
exec editor, HOMEBREW_REPOSITORY+"bin/brew",
|
||||||
HOMEBREW_REPOSITORY+'README.md',
|
HOMEBREW_REPOSITORY+'README.md',
|
||||||
HOMEBREW_REPOSITORY+".gitignore",
|
HOMEBREW_REPOSITORY+".gitignore",
|
||||||
*library_folders
|
*library_folders
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user