Skip to content

Package manager for macOS

Brew#

Use brew to install almost everything on macOS. This also handles installing XCode Command Line Tools which lets you use the git which was bundled with the OS (e.g. shouldn’t need to accept XCode license manually).

Installation#

Terminal window
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Check that it worked

Terminal window
brew doctor

Useful commands#

Show what you have installed at a top level and excludes their dependencies.

Terminal window
brew leaves

Brewfile#

Easily re-install all of the packages you’ve installed with brew on another machine using Homebrew-file.

Installation#

Terminal window
brew install rcmdnk/file/brew-file

With an existing Brewfile, copy that file to ~/.config/brewfile/Brewfile and run the following command. You may need to wrap the brew command as shown in the fish installation.

Terminal window
brew file install

Devbox#

Installation#

Install devbox

Terminal window
curl -fsSL https://get.jetify.com/devbox | bash

Add the init hook.

~/.config/fish/config.fish
devbox global shellenv --init-hook | source

Restart the terminal. This should initiate installing nix.

Pull the global config from git

Terminal window
devbox global shellenv --init-hook | source