brew

https://github.com/homebrew/brew

Ruby

🍺 The missing package manager for macOS

OS::Mac::XQuartz.effective_prefix

If XQuartz and/or the CLT are installed, headers will be found under
/opt/X11/include or /usr/X11/include. For Xcode-only systems, they are
found in the SDK, so we use sdk_path for both the headers and libraries.
Confusingly, executables (e.g. config scripts) are only found under
/opt/X11/bin or /usr/X11/bin in all cases.

Source | Google | Stack overflow

Edit

git clone [email protected]:homebrew/brew.git

cd brew

open Library/Homebrew/os/mac/xquartz.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-OS--Mac--XQuartz-effective_prefix-for-pr


# Commit to git

git add Library/Homebrew/os/mac/xquartz.rbgit commit -m "better docs for OS::Mac::XQuartz.effective_prefix"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-OS--Mac--XQuartz-effective_prefix-for-pr

hub pull-request


# Celebrate!