Merge pull request #10349 from zgracem/fix-shellenv-fish

fix `brew shellenv` on fish
This commit is contained in:
Mike McQuaid 2021-01-21 13:07:00 +00:00 committed by GitHub
commit 3f9b213e9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@
#: Consider adding evaluation of this command's output to your dotfiles (e.g. `~/.profile`, `~/.bash_profile`, or `~/.zprofile`) with: `eval $(brew shellenv)`
homebrew-shellenv() {
case "$(/bin/ps -p $PPID -o comm=)" in
case "$(/bin/ps -p $PPID -c -o comm=)" in
fish|-fish)
echo "set -gx HOMEBREW_PREFIX \"$HOMEBREW_PREFIX\";"
echo "set -gx HOMEBREW_CELLAR \"$HOMEBREW_CELLAR\";"