From a9d1457c0533d9ad4161f928e1956fcd3f539823 Mon Sep 17 00:00:00 2001 From: EricFromCanada Date: Tue, 20 Aug 2019 12:54:44 -0400 Subject: [PATCH] shellenv: suggest .zprofile for zsh users --- Library/Homebrew/cmd/shellenv.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Library/Homebrew/cmd/shellenv.sh b/Library/Homebrew/cmd/shellenv.sh index 8639092cd8..b540351a6f 100644 --- a/Library/Homebrew/cmd/shellenv.sh +++ b/Library/Homebrew/cmd/shellenv.sh @@ -3,7 +3,7 @@ #: Print export statements. When run in a shell, this installation of Homebrew will be added to your `PATH`, `MANPATH`, and `INFOPATH`. #: #: The variables `HOMEBREW_PREFIX`, `HOMEBREW_CELLAR` and `HOMEBREW_REPOSITORY` are also exported to avoid querying them multiple times. -#: Consider adding evaluation of this command's output to your dotfiles (e.g. `~/.profile`) with: `eval $(brew shellenv)` +#: Consider adding evaluation of this command's output to your dotfiles (e.g. `~/.profile` or `~/.zprofile`) with: `eval $(brew shellenv)` homebrew-shellenv() { case "$SHELL" in @@ -24,12 +24,12 @@ homebrew-shellenv() { echo "setenv INFOPATH $HOMEBREW_PREFIX/share/info:\$INFOPATH;" ;; *) - echo "export HOMEBREW_PREFIX=\"$HOMEBREW_PREFIX\"" - echo "export HOMEBREW_CELLAR=\"$HOMEBREW_CELLAR\"" - echo "export HOMEBREW_REPOSITORY=\"$HOMEBREW_REPOSITORY\"" - echo "export PATH=\"$HOMEBREW_PREFIX/bin:$HOMEBREW_PREFIX/sbin:\$PATH\"" - echo "export MANPATH=\"$HOMEBREW_PREFIX/share/man:\$MANPATH\"" - echo "export INFOPATH=\"$HOMEBREW_PREFIX/share/info:\$INFOPATH\"" + echo "export HOMEBREW_PREFIX=\"$HOMEBREW_PREFIX\";" + echo "export HOMEBREW_CELLAR=\"$HOMEBREW_CELLAR\";" + echo "export HOMEBREW_REPOSITORY=\"$HOMEBREW_REPOSITORY\";" + echo "export PATH=\"$HOMEBREW_PREFIX/bin:$HOMEBREW_PREFIX/sbin:\$PATH\";" + echo "export MANPATH=\"$HOMEBREW_PREFIX/share/man:\$MANPATH\";" + echo "export INFOPATH=\"$HOMEBREW_PREFIX/share/info:\$INFOPATH\";" ;; esac }