Merge pull request #10349 from zgracem/fix-shellenv-fish
fix `brew shellenv` on fish
This commit is contained in:
commit
3f9b213e9c
@ -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)`
|
#: Consider adding evaluation of this command's output to your dotfiles (e.g. `~/.profile`, `~/.bash_profile`, or `~/.zprofile`) with: `eval $(brew shellenv)`
|
||||||
|
|
||||||
homebrew-shellenv() {
|
homebrew-shellenv() {
|
||||||
case "$(/bin/ps -p $PPID -o comm=)" in
|
case "$(/bin/ps -p $PPID -c -o comm=)" in
|
||||||
fish|-fish)
|
fish|-fish)
|
||||||
echo "set -gx HOMEBREW_PREFIX \"$HOMEBREW_PREFIX\";"
|
echo "set -gx HOMEBREW_PREFIX \"$HOMEBREW_PREFIX\";"
|
||||||
echo "set -gx HOMEBREW_CELLAR \"$HOMEBREW_CELLAR\";"
|
echo "set -gx HOMEBREW_CELLAR \"$HOMEBREW_CELLAR\";"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user