From 530ab40bd5624d2abcd462626de9a1fdec117c34 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Mon, 8 Jun 2009 15:59:59 +0100 Subject: [PATCH] With brew mk, open with mate if available --- bin/brew | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/brew b/bin/brew index 7fa0341640..9c7651a7d1 100755 --- a/bin/brew +++ b/bin/brew @@ -272,7 +272,12 @@ begin f.puts "end" f.close - puts path + if Kernel.system "which mate > /dev/null" and $? == 0 + exec "mate #{path}" + else + puts path + end + when 'info' o=__obj shift_formulae_from_ARGV[0] puts "#{o.name} #{o.version}"