aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMarkus Reiter2017-04-28 12:39:00 +0200
committerMarkus Reiter2017-04-30 21:11:28 +0200
commit22f624b373d77ede5c15db6f62672bdd81e6c9da (patch)
tree2e74f0456b0d8e9707b19c545735208f939c00fe /Library/Homebrew/cmd
parente70f2ec33233422b70db047338aa85d9e2088042 (diff)
downloadbrew-22f624b373d77ede5c15db6f62672bdd81e6c9da.tar.bz2
Make `PATH` enumerable.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/sh.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/sh.rb b/Library/Homebrew/cmd/sh.rb
index 1e86784cb..69f329cb3 100644
--- a/Library/Homebrew/cmd/sh.rb
+++ b/Library/Homebrew/cmd/sh.rb
@@ -23,7 +23,7 @@ module Homebrew
ENV.setup_build_environment
if superenv?
# superenv stopped adding brew's bin but generally users will want it
- ENV["PATH"] = PATH.new(PATH.new(ENV["PATH"]).to_a.insert(1, HOMEBREW_PREFIX/"bin"))
+ ENV["PATH"] = PATH.new(ENV["PATH"]).insert(1, HOMEBREW_PREFIX/"bin")
end
ENV["PS1"] = 'brew \[\033[1;32m\]\w\[\033[0m\]$ '
ENV["VERBOSE"] = "1"