Skip to content
jacknagel edited this page Sep 5, 2012 · 1 revision

Using Homebrew without the CLT

AKA Xcode-wo/CLT, noclt, xwoclt.

Homebrew can be used with just Xcode—and without the CLT—provided it is installed to /usr/local. This is experimental, but it works pretty good.

Follows are tips for making life easier:

Put this in your ~/.bash_profile:

if [ ! -x "/usr/bin/cc" ]; then
  if [ ! -x "/usr/local/bin/git" ]; then
    alias git='xcrun git'
    export GIT=`xcrun -find git`
  fi
  export MANPATH="/Applications/Xcode.app/Contents/Developer/usr/share/man:$MANPATH"
  export MANPATH="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/share/man/:$MANPATH"
  alias otool='xcrun otool'
  alias install_name_tool='xcrun install_name_tool'
fi

Clone this wiki locally