/
run_once_20-install-brew-casks.sh.tmpl
79 lines (66 loc) · 1.25 KB
/
run_once_20-install-brew-casks.sh.tmpl
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/bin/bash
{{ if eq .chezmoi.os "darwin" -}}
set -eufo pipefail
casks=(
1password
1password-cli
aerial
alfred
affinity-designer
affinity-photo
affinity-publisher
bartender
bettertouchtool
chromium
discord
firefox
gpg-suite
iina
istat-menus
iterm2
kap
keka
keycastr
loopback
microsoft-auto-update
microsoft-edge
monitorcontrol
notion
obs
obsidian
postico
rectangle
session-manager-plugin
sequel-ace
slack
soundsource
spotify
tailscale
telegram
visual-studio-code
zoom
)
# Make sure we're using the latest Homebrew.
brew update
# Upgrade any already-installed formulae.
brew upgrade
# Install casks one at a time because there is no `--skip-installed` flag
# https://github.com/Homebrew/brew/issues/12361
for cask in ${casks[@]}; do
echo "Installing ${cask}"
brew install --cask $cask --quiet 2> 1
done
# cosmonic requirements
brew tap hashicorp/tap
brew install hashicorp/tap/terraform
terraform -install-autocomplete
brew install hashicorp/tap/nomad
nomad -autocomplete-install
brew install hashicorp/tap/vault
vault -autocomplete-install
brew install hashicorp/tap/packer
packer -autocomplete-install
brew install hashicorp/tap/consul
consul -autocomplete-install
brew cleanup
{{ end -}}