-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_once_before_10-install-packages-darwin.sh.tmpl
96 lines (90 loc) · 1.68 KB
/
run_once_before_10-install-packages-darwin.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{{- if (and false (eq .chezmoi.os "darwin")) -}}
#!/bin/bash
# set -eufo pipefail
set \
-o errexit \
-o nounset \
-o noglob \
-o pipefail
{{ $brews := list
"bat"
"curl"
"exa"
"ffmpeg"
"gh"
"git"
"git-lfs"
"gnu-units"
"gnupg"
"go"
"golangci-lint"
"goreleaser"
"graphviz"
"hugo"
"jq"
"node"
"openjdk"
"ripgrep"
"shellcheck"
"tmux"
"wget"
"xz"
"youtube-dl" -}}
{{- $casks := list
"docker"
"google-chrome"
"google-earth-pro"
"hammerspoon"
"iterm2"
"karabiner-elements"
"macvim"
"spotify"
"vagrant"
"virtualbox"
"visual-studio-code"
"vlc" -}}
{{- if .personal -}}
{{- $brews = concat $brews (list
"bitwarden-cli"
"gopass"
"lastpass-cli"
"pass"
"postgis"
"postgresql"
"pspg"
"vault") -}}
{{- $casks = concat $casks (list
"1password-cli"
"balenaetcher"
"google-cloud-sdk"
"keepassxc"
"signal"
"telegram"
"transmission"
"viber"
"whatsapp") -}}
{{- end -}}
{{- if .isovalent -}}
{{- $brews = concat $brews (list
"aws-iam-authenticator"
"awscli"
"azure-cli"
"eksctl"
"helm"
"kops"
"kubernetes-cli"
"minikube"
"packer") -}}
{{- $casks = concat $casks (list
"1password-cli"
"zoom") -}}
{{- end -}}
brew bundle --no-lock --file=/dev/stdin <<EOF
{{ range ($brews | sortAlpha | uniq) -}}
brew "{{ . }}"
{{ end -}}
{{ range ($casks | sortAlpha | uniq) -}}
cask "{{ . }}"
{{ end }}
EOF
{{- end }}