diff options
| author | Max Howell | 2012-01-14 02:40:43 +0000 | 
|---|---|---|
| committer | Max Howell | 2012-01-14 02:40:43 +0000 | 
| commit | ea40b1b87a6e03533ae922aba7cc636d7ac9299c (patch) | |
| tree | e39989868c963c909e89bf815b993a8a30a923a1 /Library/Homebrew/cmd | |
| parent | 86d21edea5236363fc0a34d3d99d58ce3a1559e8 (diff) | |
| download | homebrew-ea40b1b87a6e03533ae922aba7cc636d7ac9299c.tar.bz2 | |
Use the basename of which_editor
I had EDITOR set to /usr/local/bin/mate set and got the whole of /usr/local opened in TextMate which takes fricking forever!
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/edit.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/Library/Homebrew/cmd/edit.rb b/Library/Homebrew/cmd/edit.rb index a2f5082b5..abaefbea8 100644 --- a/Library/Homebrew/cmd/edit.rb +++ b/Library/Homebrew/cmd/edit.rb @@ -4,7 +4,7 @@ module Homebrew extend self    def edit      # If no brews are listed, open the project root in an editor.      if ARGV.named.empty? -      editor = which_editor +      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", | 
