tto / docs / macos / brew

install brew

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

add homebrew to path in .bash_profile:

export PATH="/usr/local/opt/ruby/bin:/opt/homebrew/opt/ruby/bin:/opt/homebrew/bin:/opt/homebrew/sbin:$PATH"

add homebrew to path in powershell $PROFILE:

$env:PATH += ":/usr/local/bin"

install software

go to brew.sh and search powershell or iterm2 or whatever.

install packets with:

brew install --cask iterm2
brew install --cask powershell
brew install --cask visual-studio-code

update and upgrade

brew update checks for outdated packages. brew upgrade upgrades installed packages to the latest version.

brew update && brew upgrade

other stuff

search from command line: brew search git

show installed packages: brew list

show installed packages in json format and write to file: brew info --installed --json > ./git/foam/docs/macos/homebrew.json