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#
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Check that it worked
brew doctorUseful commands#
Show what you have installed at a top level and excludes their dependencies.
brew leavesYou can also view your installed casks
brew list --caskBrewfile#
Easily re-install all of the packages you’ve installed with brew on another machine using a Brewfile.
Export your installed dependencies to a Brewfile in the current directory
brew bundle dumpInstall your dependencies using an existing Brewfile
brew bundle installYou can overwrite an existing Brewfile by running the following command. This is useful when you already version your Brewfile using git.
brew bundle dump --forceDevbox#
Installation#
Install devbox
curl -fsSL https://get.jetify.com/devbox | bashAdd the init hook.
devbox global shellenv --init-hook | sourceRestart the terminal. This should initiate installing nix.
Usage#
Pull the global config:
devbox global pull git@github.com:phillip-le/devbox-config.gitPush the global config:
devbox global push git@github.com:phillip-le/devbox-config.git