Open AlanGreene opened 3 years ago
https://github.com/simeji/jid - interactive jq
-style filtering of JSON
brew leaves
lists installed formulae that are not dependencies of another installed formula.
brew ls --cask
for Casks…
Compare output of these on primary machines with the Brewfile in this repo and resolve any differences.
crane
for interacting with remote images, e.g. confirming digest of an image by tag
from https://github.com/omerxx/dotfiles
# Leaving a machine
brew leaves > leaves.txt
# Fresh installation
xargs brew install < leaves.txt
https://github.com/Homebrew/homebrew-bundle
already used in https://github.com/AlanGreene/starter/blob/main/macOS/config.sh
supports installing from brew, cask, Mac App Store, and VS Code extensions
brew bundle
is automatically installed when first run, should be able to remove the brew tap homebrew/bundle
conditionals in brewfile (uses ruby syntax?)
e.g.
brew "starship"
brew "tmux"
# macos
if OS.mac?
cask "iterm2"
cask "karabiner-elements"
cask "1password-cli"
brew "bitwarden-cli"
cask "keepingyouawake"
end
or
brew "emacs-plus", args: ["with-ctags"] if OS.mac?
Difference between brew leaves
and brew bundle dump
?
Running
brew bundle dump
will record an installation to a Brewfile andbrew bundle install
will install from a Brewfile. Seebrew bundle --help
for more details.
https://docs.brew.sh/Cask-Cookbook#stanza-zap more complete uninstall (preferences, cache, etc.)
Add missing apps to the Brewfile so they're included by default on a fresh install. Maybe split out a separate Brewfile for apps / tools only used on personal machines.