From 5098067e4874b1f4b9eb79f871141c9b83651c64 Mon Sep 17 00:00:00 2001 From: Nicolas Iooss Date: Sat, 4 May 2024 17:06:50 +0200 Subject: [PATCH] .shell/functions: add new install location for Homebrew On macOS 14 GitHub Actions runners, Homebrew is now installed in `/opt/homebrew` so `brew` is located in `/opt/homebrew/bin/brew`. --- dotfiles/shell/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles/shell/functions b/dotfiles/shell/functions index 69ac3b7..61d3a19 100644 --- a/dotfiles/shell/functions +++ b/dotfiles/shell/functions @@ -554,7 +554,7 @@ if [ -x /usr/bin/which ] ; then whichpkg() { /usr/bin/which "$@" | xargs qfile } - elif [ -x /usr/local/bin/brew ] ; then + elif [ -x /usr/local/bin/brew ] || [ -x /opt/homebrew/bin/brew ] ; then # Mac OS X files are symlinks to /usr/local/Cellar/PKGNAME/... whichpkg() { /usr/bin/which "$@" | xargs realpath