From 6626966ddd7740064532adf9370017306c4aaf7c Mon Sep 17 00:00:00 2001 From: Max Howell Date: Sat, 14 Jan 2012 02:40:43 +0000 Subject: [PATCH] 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! --- Library/Homebrew/cmd/edit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/edit.rb b/Library/Homebrew/cmd/edit.rb index a2f5082b53..abaefbea89 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",