aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/utils.rb')
-rw-r--r--Library/Homebrew/utils.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 4efcb2b4d..cde2ee306 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -175,7 +175,7 @@ module Homebrew
end
def system(cmd, *args)
- puts "#{cmd} #{args*" "}" if ARGV.verbose?
+ puts "#{cmd} #{args * " "}" if ARGV.verbose?
_system(cmd, *args)
end
@@ -336,6 +336,12 @@ def which_editor
editor = candidate if which(candidate, ENV["HOMEBREW_PATH"])
end
+ # Find Textmate
+ editor = which("mate", ENV["HOMEBREW_PATH"])
+ # Find BBEdit/TextWrangler
+ editor ||= which("edit", ENV["HOMEBREW_PATH"])
+ # Find vim
+ editor ||= which("vim", ENV["HOMEBREW_PATH"])
# Default to standard vim
editor ||= "/usr/bin/vim"