-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
run_once_after_darwin_10-install-packages.sh.tmpl
111 lines (93 loc) · 1.81 KB
/
run_once_after_darwin_10-install-packages.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{{- if (eq .chezmoi.os "darwin") -}}
#!/bin/sh
# Install common macOS packages
source /tmp/chezmoi-utils.sh
printf "${green}[10 - macOS] ${reset}"
{{- if or (lt 10 (atoi (env "SCRIPTS_START_AT"))) (env "SKIP_BREW") }}
echo "Skip installing common macOS packages"
exit 0
{{ else }}
echo "Install common macOS packages"
{{- end }}
set -eufo pipefail
{{ $taps := list
"homebrew/cask-fonts"
"koekeishiya/formulae"
"FelixKratz/formulae"
"yqrashawn/goku"
-}}
{{ $brews := list
"gh"
"ghq"
"git"
"git-delta"
"git-extras"
"mackup"
"mas"
"laniksj/tap/neofetch-plus"
"reattach-to-user-namespace"
"terminal-notifier"
"tmux"
"tree"
"watch"
"zsh"
"colima"
"docker"
"docker-buildx"
"docker-compose"
"kubernetes-cli"
"kubectx"
"koekeishiya/formulae/skhd"
"koekeishiya/formulae/yabai"
"yqrashawn/goku/goku"
"FelixKratz/formulae/sketchybar"
"FelixKratz/formulae/borders"
"bat"
"btop"
"chezmoi"
"eza"
"ffmpeg"
"fileicon"
"gpg"
"jq"
"fzf"
"fzy"
"shellcheck"
"switchaudio-osx"
"wakatime-cli"
"zoxide"
-}}
{{ $casks := list
"1password/tap/1password-cli"
"bunch"
"font-comic-mono"
"font-fira-code-nerd-font"
"font-fantasque-sans-mono"
"font-fantasque-sans-mono-nerd-font"
"font-monaspace-nerd-font"
"qlmarkdown"
"quicklook-json"
"qlimagesize"
"suspicious-package"
"quicklookase"
"qlvideo"
"WebPQuickLook"
-}}
brew bundle --no-lock --file=/dev/stdin <<EOF || :
{{ range ($taps | sortAlpha | uniq) -}}
tap "{{ . }}"
{{ end }}
{{ range ($brews | sortAlpha | uniq) -}}
brew "{{ . }}"
{{ end }}
{{ range ($casks | sortAlpha | uniq) -}}
cask "{{ . }}"
{{ end }}
EOF
echo "Start services..."
# {{- if not (eq .computer_name "narze-m1-pro") }}
# brew services start skhd
# brew services start yabai
# {{- end }}
brew services restart goku
{{ end -}}