cat: use HOMEBREW_VISUAL as pager if set
This commit is contained in:
parent
db18713c8a
commit
b31b14f786
@ -25,6 +25,7 @@ module Homebrew
|
||||
raise "`brew cat` doesn't support multiple arguments" if args.remaining.size > 1
|
||||
|
||||
cd HOMEBREW_REPOSITORY
|
||||
safe_system "cat", formulae.first.path, *Homebrew.args.passthrough
|
||||
pager = ENV["HOMEBREW_VISUAL"] || "cat"
|
||||
safe_system pager, formulae.first.path, *Homebrew.args.passthrough
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user