shellenv: suggest .zprofile for zsh users
This commit is contained in:
parent
84c5f40793
commit
a9d1457c05
@ -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`.
|
#: 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.
|
#: 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() {
|
homebrew-shellenv() {
|
||||||
case "$SHELL" in
|
case "$SHELL" in
|
||||||
@ -24,12 +24,12 @@ homebrew-shellenv() {
|
|||||||
echo "setenv INFOPATH $HOMEBREW_PREFIX/share/info:\$INFOPATH;"
|
echo "setenv INFOPATH $HOMEBREW_PREFIX/share/info:\$INFOPATH;"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "export HOMEBREW_PREFIX=\"$HOMEBREW_PREFIX\""
|
echo "export HOMEBREW_PREFIX=\"$HOMEBREW_PREFIX\";"
|
||||||
echo "export HOMEBREW_CELLAR=\"$HOMEBREW_CELLAR\""
|
echo "export HOMEBREW_CELLAR=\"$HOMEBREW_CELLAR\";"
|
||||||
echo "export HOMEBREW_REPOSITORY=\"$HOMEBREW_REPOSITORY\""
|
echo "export HOMEBREW_REPOSITORY=\"$HOMEBREW_REPOSITORY\";"
|
||||||
echo "export PATH=\"$HOMEBREW_PREFIX/bin:$HOMEBREW_PREFIX/sbin:\$PATH\""
|
echo "export PATH=\"$HOMEBREW_PREFIX/bin:$HOMEBREW_PREFIX/sbin:\$PATH\";"
|
||||||
echo "export MANPATH=\"$HOMEBREW_PREFIX/share/man:\$MANPATH\""
|
echo "export MANPATH=\"$HOMEBREW_PREFIX/share/man:\$MANPATH\";"
|
||||||
echo "export INFOPATH=\"$HOMEBREW_PREFIX/share/info:\$INFOPATH\""
|
echo "export INFOPATH=\"$HOMEBREW_PREFIX/share/info:\$INFOPATH\";"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user