Skip to content

Commit

Permalink
Link more directories from /opt/homebrew to /usr/local
Browse files Browse the repository at this point in the history
  • Loading branch information
tshu-w committed Dec 9, 2024
1 parent fc9d8d8 commit 01f3e3d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions darwin/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,11 @@ arm64)
x86_64)
eval "$(/usr/local/bin/brew shellenv)" ;;
esac
# Link /opt/homebrew/bin to /usr/local/bin
[ -d /usr/local/bin ] || sudo ln -s /opt/homebrew/bin /usr/local/bin

# Link /opt/homebrew directories to /usr/local
for dir in "bin" "include" "lib" "sbin" "share"; do
[ -d "/usr/local/$dir" ] || sudo ln -s "/opt/homebrew/$dir" "/usr/local/$dir"
done

# Install all dependencies from the Brewfile
if [[ -n "${GITHUB_ACTION:-}" ]]; then
Expand Down

0 comments on commit 01f3e3d

Please sign in to comment.