aboutsummaryrefslogtreecommitdiffstats
path: root/Library/brew.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/brew.rb')
-rwxr-xr-xLibrary/brew.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/Library/brew.rb b/Library/brew.rb
index dad310e84..4fa22b4ee 100755
--- a/Library/brew.rb
+++ b/Library/brew.rb
@@ -70,17 +70,13 @@ begin
'abv' => 'info',
'dr' => 'doctor',
'--repo' => '--repository',
- 'environment' => '--env' # same as gem
+ 'environment' => '--env',
+ '-c1' => '--config',
}
cmd = ARGV.shift
cmd = aliases[cmd] if aliases[cmd]
- if cmd == '-c1' # Shortcut for one line of configuration
- cmd = '--config'
- ARGV.unshift('-1')
- end
-
sudo_check = Set.new %w[ install link pin unpin upgrade ]
if sudo_check.include? cmd