blob: 3eec279fbf807c8403837193da6bb49bf095cc21 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#!/usr/bin/env zsh
# == Code Below ==
if [[ ! -d "/usr/local/Homebrew" ]] && [[ -f "/private/etc/bashrc_Apple_Terminal" ]]; then
# Install xcode cli components
xcode-select --install
# Install brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew doctor;
brew update;
# Install taps here
brew tap git-chglog/git-chglog;
# Tap fonts
brew tap homebrew/cask-fonts
# Gitlab kubelogin tap
brew tap incubator/kubelogin https://gitlab.nordstrom.com/k8s/incubator/homebrew-kubelogin.git;
fi
# Install new brew packages
brewtemp=$(mktemp /tmp/upbrew.XXXX)
brew deps --installed | awk -F ':' '{print $1}' > $brewtemp
comm -13 $brewtemp ~/.setup/list.brew | while read -r b; do brew install $b ; done
rm $brewtemp
# Install new cask packages
casktemp=$(mktemp /tmp/upbrewcask.XXXX)
brew cask list -1 > $casktemp
comm -13 $casktemp ~/.setup/list.brewcask | while read -r b; do brew cask install $b ; done
rm $casktemp
|