dotfiles/brew.sh
Jonny Barnes 1280f864ae
Fix two brew install lines that error out
`brew install gnu-sed --with-default-names` fails with "invalid option"
- Homebrew dropped per-formula option flags years ago. The flag existed
to install GNU sed as `sed` rather than `gsed`, which is now the
opposite of what we want, so drop it and note why in the comment.

`oven-sh/bun/bun` no longer resolves; bun has since moved into
homebrew-core, so install it by its plain name. This line has been
failing on every bootstrap, which is why bun was never actually
installed.

Neither aborted the script (there is no `set -e`), they just failed
their own install and carried on. Verified all 47 formulae and 6 casks
now resolve and none are deprecated or disabled.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-08 11:53:54 +01:00

78 lines
1.6 KiB
Shell
Executable file

#!/usr/bin/env zsh
# Check brew is installed first
if ! (( $+commands[brew] ))
then
echo "Homebrew not installed yet"
exit 1
fi
# update brew, and upgrade already installed formulae
brew update
brew upgrade
# Install GNU coreutils, (macOS ships with outdated versions)
brew install coreutils
# Install more system utilities
brew install moreutils findutils
# Install GNU `sed` (as `gsed` - we deliberately don't shadow BSD sed, see zshrc.zsh)
brew install gnu-sed
# Install more recent versions of some macOS tools.
brew install vim
brew install curl
brew install grep
brew install openssh
brew install rsync
brew install zsh
# Install other useful utilities
brew install ack
brew install age
brew install awscli
brew install b3sum
brew install bat
brew install bun
brew install diff-so-fancy
brew install eza
brew install fd
brew install ffmpeg
brew install fnm
brew install fzf
brew install gh
brew install git
brew install git-delta
brew install git-lfs
brew install gnupg
brew install hexyl
brew install jq
brew install lazygit
brew install mcfly
brew install neovim
brew install p7zip
brew install pcre
brew install ripgrep
brew install rm-improved
brew install ruby
brew install sheldon
brew install sqlite
brew install thefuck
brew install tmux
brew install uv
brew install vivid
brew install wget
brew install xz
brew install zopfli
brew install zoxide
# Install some casks
brew install --cask 1password-cli
brew install --cask airbuddy
brew install --cask claude-code
brew install --cask ngrok
brew install --cask silentknight
brew install --cask sublime-text
# Remove outdated versions from the Cellar
brew cleanup