Skip to content

Commit

Permalink
.shell/functions: add new install location for Homebrew
Browse files Browse the repository at this point in the history
On macOS 14 GitHub Actions runners, Homebrew is now installed in
`/opt/homebrew` so `brew` is located in `/opt/homebrew/bin/brew`.
  • Loading branch information
fishilico committed May 4, 2024
1 parent 87d7c47 commit 5098067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dotfiles/shell/functions
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5098067

Please sign in to comment.