Skip to content

Instantly share code, notes, and snippets.

@huevos-y-bacon
Last active August 17, 2022 21:50
Show Gist options
  • Save huevos-y-bacon/85f0832104dbfebdd705aa9d04cbd302 to your computer and use it in GitHub Desktop.
Save huevos-y-bacon/85f0832104dbfebdd705aa9d04cbd302 to your computer and use it in GitHub Desktop.
MacOS: bulk install apps via Homebrew, including App Store apps. Edit the various Brewfiles and run `brew-bundle.sh`
# MAC APP STORE
brew "mas"
mas "Amazon Prime Video", id: 545519333
mas "Amphetamine", id: 937984704
mas "AnyTune: Practice Perfected", id: 722444976
mas "ChordPro Buddy", id: 434955766
mas "GeoTag", id: 1465180184
mas "Logic Pro", id: 634148309
mas "MainStage", id: 634159523
mas "PreviewCode", id: 1571797683
mas "PreviewMarkdown", id: 1492280469
mas "PreviewYaml", id: 1564574724
mas "Speedtest by Ookla", id: 1153157709
mas "Suggester - Chords and Scales", id: 1106482294
mas "Trello", id: 1278508951
mas "WhatsApp Desktop", id: 1147396723
mas "WiFi Explorer", id: 494803304
# AUDIO / VIDEO / GRAPHICS
brew "ffmpeg"
brew "yt-dlp"
cask "blackhole-16ch"
cask "ilok-license-manager"
cask "spotify"
cask "gimp"
#!/usr/bin/env bash
colours(){
reset=$(tput sgr0 :-"" 2>/dev/null); export reset
bold=$(tput bold :-"" 2>/dev/null) ; export bold
R=$(tput setaf 1 :-"" 2>/dev/null) ; export R
G=$(tput setaf 2 :-"" 2>/dev/null) ; export G
B=$(tput setaf 4 :-"" 2>/dev/null) ; export B
Y=$(tput setaf 3 :-"" 2>/dev/null) ; export Y
}; colours
CWD=$(pwd -P)
# TRY BREW, RETRY ONCE AFTER 2s, THEN FAIL
brew_bundle(){
echo "================================================================="
echo -e "${bold}${Y}Running \`brew bundle --file ${brewfile}\`...${reset}\n"
brew bundle --file "${CWD}/${brewfile}" || {
echo "${bold}${R}Retrying ${brewfile}${reset}";
sleep 2;
brew bundle --file "${CWD}/${brewfile}" || exit 1;
}
}
# INSTALL HOMEBREW - REQUIRES PASSWORD
install_homebrew(){
echo -e "${bold}${Y}Installing Homebrew ...${reset}"
which -s brew
if [[ $? != 0 ]] ; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" || echo
else
echo -e "${bold}${Y}Homebrew already installed, running \`brew update\`...${reset}"
brew update
fi
}
install_homebrew
for brewfile in *rewfile; do brew_bundle; done
# BASE
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/core"
# BASE Apps
cask "joplin"
cask "bettertouchtool"
cask "visual-studio-code"
cask "bitwarden"
cask "iterm2"
brew "tree"
cask "cryptomator"
cask "appcleaner"
cask "bartender"
cask "keka"
# BROWSERS
cask "firefox"
cask "google-chrome"
#cask "brave-browser"
#cask "microsoft-edge"
# IM Apps
# cask "whatsapp" # APP STORE
cask "signal"
# cask "telegram"
# VARIOUS
# cask "kindle"
# PRODUCTIVITY
cask "drawio"
# cask "beyond-compare"
# cask "alfred"
# WORK MAC ONLY
# cask "microsoft-teams"
# cask "skype-for-business"
# cask "amazon-chime"
# CLOUD DRIVES
cask "google-drive"
cask "onedrive"
# cask "google-backup-and-sync"
# MICROSOFT OFFICE
# cask "microsoft-auto-update"
# cask "microsoft-office"
# AWS TOOLS
brew "awscli"
brew "awsume"
cask_args "no-quarantine": true
cask "session-manager-plugin"
# CODING, IDE, ETC
cask "visual-studio-code"
cask "github"
# cask "miniconda"
brew "pyenv"
brew "cfn-lint"
tap "warrensbox/tap"
brew "tfswitch"
brew "jq"
brew "yq"
brew "shellcheck"
brew "cfn-lint"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment