brew/Library/Homebrew/cmd/shellenv.rb
2018-09-07 11:37:14 -05:00

17 lines
512 B
Ruby

#: * `shellenv`:
#: Prints export statements - run them in a shell and this installation of
#: Homebrew will be included into your PATH, MANPATH, and INFOPATH.
#: Tip: have your dotfiles eval the output of this command
module Homebrew
module_function
def shellenv
puts <<~EOS
export PATH="#{HOMEBREW_PREFIX}/bin:#{HOMEBREW_PREFIX}/sbin:$PATH"
export MANPATH="#{HOMEBREW_PREFIX}/share/man:$MANPATH"
export INFOPATH="#{HOMEBREW_PREFIX}/share/info:$INFOPATH"
EOS
end
end