-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_once_before_10_homebrew.sh.tmpl
116 lines (108 loc) · 2.17 KB
/
run_once_before_10_homebrew.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
112
113
114
115
116
#!/bin/bash
{{ if (eq .chezmoi.os "darwin") -}}
source {{ joinPath .chezmoi.sourceDir "lib/utils.sh" }}
if ! type_exists 'brew'; then
p_header "Installing Homebrew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/leon/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
[[ $? ]] && p_success "Done"
fi
p_header "- Updating Homebrew"
brew update
[[ $? ]] && p_success "Done"
p_header "- Upgrading existing cask and formulae"
brew upgrade
[[ $? ]] && p_success "Done"
# gnu-units, golangci-lint, goreleaser, xz
# vagrant, minikube, packer
# grammarly, unarchiver
# tomighty (pomodoro), nordvpn cli
# https://github.com/cheat/cheat
# alacritty, zellij
p_header "- Installing missing brews and casks"
brew bundle --no-lock --file=- <<EOF
tap "homebrew/cask-fonts"
brew "act"
brew "awscli"
brew "awscurl"
brew "bat"
brew "borgbackup"
brew "chezmoi"
brew "choose-rust"
brew "cmake"
brew "diff-so-fancy"
brew "exa"
brew "ffmpeg"
brew "fzf"
brew "gh"
brew "gist"
brew "git"
brew "git-lfs"
brew "git-secrets"
brew "gnupg"
brew "go"
brew "golangci-lint"
brew "goreleaser"
brew "helm@3"
brew "hugo"
brew "jq"
brew "k9s"
brew "kind"
brew "kubectx"
brew "kubernetes-cli"
brew "micro"
brew "ninja"
brew "nvm"
brew "p7zip"
brew "pandoc"
brew "pgcli"
brew "postgresql@14"
brew "python@3.9"
brew "qt"
brew "ripgrep"
brew "rpm"
brew "rustup"
brew "sqlite"
brew "stockfish"
brew "the_silver_searcher"
brew "thefuck"
brew "tokei"
brew "wabt"
brew "wallpaper"
brew "wireshark"
brew "youtube-dl"
cask "1password"
cask "amethyst"
cask "anki"
cask "calibre"
cask "chromium"
cask "docker"
cask "firefox"
cask "font-jetbrains-mono"
cask "gitkraken"
cask "google-chrome"
cask "graphql-playground"
cask "hpedrorodrigues/tools/dockutil"
cask "insomnia"
cask "iterm2"
cask "karabiner-elements"
cask "mochi"
cask "mongodb-compass"
cask "nosql-workbench"
cask "postman"
cask "robo-3t"
cask "slack"
cask "spotify"
cask "tunnelblick"
cask "typora"
cask "vlc"
cask "visual-studio-code"
cask "whatsapp"
cask "zoom"
EOF
[[ $? ]] && p_success "Done"
p_header "- Clean up"
brew cleanup
[[ $? ]] && p_success "Done"
{{ end -}}