aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/brew b/bin/brew
index 77b2f59bb..93fbbe9f2 100755
--- a/bin/brew
+++ b/bin/brew
@@ -1,6 +1,8 @@
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -W0
# -*- coding: utf-8 -*-
+std_trap = trap("INT") { exit! 130 } # no backtrace thanks
+
HOMEBREW_BREW_FILE = ENV['HOMEBREW_BREW_FILE'] = File.expand_path(__FILE__)
require 'pathname'
@@ -49,6 +51,8 @@ rescue LoadError => e
end
begin
+ trap("INT", std_trap) # restore default CTRL-C handler
+
aliases = {'ls' => :list,
'homepage' => :home,
'-S' => :search,