mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
17 lines
512 B
Ruby
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
|