forked from vraravam/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBrewfile
222 lines (196 loc) · 7.29 KB
/
Brewfile
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
# file location: ${HOME}/Brewfile
# This file is used along with the `brew bundle` command to ensure that required packages and apps are installed.
# Also can be used to ensure that any package/apps that were installed as experimentation are uninstalled from the system.
# For a more detailed explanation of the philosophy/reasoning behind this file, please see https://openfolder.sh/macos-migrations-with-brewfile
# These are the common shell aliases that I have setup in the `${HOME}/.aliases` file for ease of running/typing (and also don't need to remember all these commands by-heart!). If you are using my `${HOME}/.aliases`, they will already be present for you. If not, you can then set these up in the respective dotfile of your choice
# alias bcg='brew outdated --greedy' # List all casks that are outdated like a "dry-run" (and which have version marked as 'latest')
# alias bcug='brew upgrade --greedy' # Upgrades all casks that are outdated (and which have version marked as 'latest')
# alias bupc='brew bundle check || brew bundle --all --cleanup || true; brew bundle cleanup -f || true; brew cleanup --prune=all || true; brew autoremove || true; brew upgrade || true'
# Upgrades and cleans up all regular outdated casks and libs (non-greedy)
# TODO: Need to find cask for:
# Tinkertool
# ZoomHider
# set global preferences for all 'brew install' commands
cask_args appdir: '/Applications', fontdir: '/Library/Fonts', no_quarantine: true, adopt: true
# java_present = system('/usr/libexec/java_home --failfast')
is_arm = Hardware::CPU.arm?
is_base_install = ENV.has_key?('HOMEBREW_BASE_INSTALL')
puts "Only performing base installation!" if is_base_install
tap 'homebrew/services'
tap 'romkatv/powerlevel10k'
# formulae pulled in from homebrew to replace system equivalents to fix any security issues since the OS was released
brew 'bash'
brew 'curl'
brew 'git'
brew 'less'
brew 'vim'
brew 'wget'
brew 'zsh'
# formulae pulled in for base configs
brew 'diff-so-fancy'
brew 'direnv'
brew 'eza'
brew 'git-extras'
brew 'git-tools'
brew 'mise'
brew 'powerlevel10k'
# casks pulled in for base configs
cask 'font-meslo-lg-nerd-font'
cask 'iterm2'
return if is_base_install
# formulae pulled in for advanced configs (these are optional, but still recommended)
brew 'bat'
brew 'btop'
brew 'clang-format'
brew 'git-gui'
brew 'jq'
brew 'moreutils'
brew 'ncdu'
brew 'prettyping'
brew 'ripgrep'
brew 'swi-prolog'
brew 'syncthing'
brew 'tldr'
brew 'watch'
cask 'aldente'
cask 'appcleaner'
cask 'bitwarden'
cask 'brave-browser@nightly'
cask 'cleanmymac'
cask 'clocker'
cask 'command-x'
cask 'firefox@nightly' #, greedy: true
cask 'github'
cask 'google-chrome@beta'
cask 'intellij-idea-ce'
cask 'itsycal'
cask 'jordanbaird-ice'
cask 'keepassxc@beta'
cask 'keepingyouawake'
cask 'keybase'
cask 'keycastr'
cask 'libreoffice'
cask 'monolingual'
cask 'notion'
cask 'notunes'
cask 'obsidian'
cask 'ollama', restart_service: :changed
cask 'protonvpn'
cask 'raycast'
cask 'silicon' if is_arm
cask 'stats'
cask 'the-unarchiver'
cask 'vlc'
cask 'vscodium@insiders' # TODO: Doesn't handle 'Remote Containers' and GH-based auto-syncing when compared to VSCode
cask 'whatsapp'
cask 'zoom'
# brew 'mas'
# mas 'PDFgear', id: 6469021132
# VSCode extensions
# Note: I don't want brew to silently install VS Code (which is what it does currently if the following lines are present but it doesn't find code!)
is_vscode_installed = !`which code`.chomp.empty?
if is_vscode_installed
# This is failing on different machines
# vscode 'formulahendry.code-runner'
# vscode 'nicolasvuillamy.vscode-groovy-lint'
# vscode 'redhat.java'
# vscode 'sonarsource.sonarlint-vscode'
# vscode 'vscjava.vscode-java-debug'
# vscode 'vscjava.vscode-java-pack'
# vscode 'vscjava.vscode-java-test'
# vscode 'vscjava.vscode-lombok'
vscode 'brandonkirbyson.vscode-animations'
vscode 'britesnow.vscode-toggle-quotes'
vscode 'codezombiech.gitignore'
vscode 'davidanson.vscode-markdownlint'
vscode 'dbaeumer.vscode-eslint'
vscode 'digitalbrainstem.javascript-ejs-support'
vscode 'drcika.apc-extension'
vscode 'eamodio.gitlens'
vscode 'editorconfig.editorconfig'
vscode 'esbenp.prettier-vscode'
vscode 'genuitecllc.codetogether'
vscode 'ibm.output-colorizer'
vscode 'mechatroner.rainbow-csv'
vscode 'mikestead.dotenv'
vscode 'mkhl.direnv'
vscode 'ms-azuretools.vscode-docker'
vscode 'ms-vscode.vscode-typescript-next'
vscode 'oderwat.indent-rainbow'
vscode 'orta.vscode-jest'
vscode 'rebornix.ruby'
vscode 'redhat.vscode-yaml'
vscode 'richie5um2.vscode-sort-json'
vscode 'shan.code-settings-sync'
vscode 'tchayen.markdown-links'
vscode 'tyriar.sort-lines'
vscode 'vscode-icons-team.vscode-icons'
vscode 'wayou.vscode-todo-highlight'
vscode 'wholroyd.jinja'
vscode 'wingrunr21.vscode-ruby'
vscode 'wmaurer.change-case'
vscode 'yzhang.markdown-all-in-one'
end
# ----------------------------------------------------------------------------------------------------------
# TODO: This doesn't solve the issue about performing a custom action when a specific formula/cask is (re)installed
at_exit do
# This removal is required for completions from other plugins to work (for eg git-extras)
system("rm -rfv \"${HOMEBREW_REPOSITORY}/share/zsh/site-functions/_git\" &> /dev/null 2>&1 || true") || true
end
# ----------------------------------------------------------------------------------------------------------
# Moved these brew and cask lines to clean up the noise from the above alphabetically sorted lists
# ---- zen-browser development
# brew 'gnu-tar'
# brew 'mercurial'
# ---- docker utilities
# brew 'dive' # docker layers inspection on steroids
# brew 'docker-diff'
# brew 'docker-slim' # TODO: investigate if the http-probe is a deal-breaker
# brew 'hadolint' # lint Dockerfiles (similar to shellcheck for shell scripts)
# brew 'kubernetes-cli', link: true # Note: Had to do this: rm /usr/local/bin/kubectl && brew link --overwrite kubernetes-cli
# brew 'kubernetes-helm'
# ---- command-line utilities
# brew 'fzy'
# brew 'shellcheck'
# ---- git utilities
# brew 'git-crypt'
# ---- tmux utilities
# brew 'tmux'
# brew 'reattach-to-user-namespace' # Needed if using tmux (to be able to access the macos clipboard from within tmux)
# ---- general utilities
# brew 'fzy'
# brew 'gradle-completion'
# brew 'gs' # used for compressing PDFs
# brew 'libressl', link: true
# brew 'localstack'
# brew 'shellcheck'
# brew 'speedtest-cli'
# brew 'watch'
# brew 'wifi-password'
# ---- casks
# cask 'cloudflare-warp'
# cask 'dbeaver-community'
# cask 'ghostty'
# cask 'git-credential-manager' # https://docs.github.com/en/get-started/getting-started-with-git/caching-your-github-credentials-in-git
# cask 'intellij-idea-ce'
# brew 'syncthing'
# brew 'wifi-password'
# https://docs.github.com/en/get-started/getting-started-with-git/caching-your-github-credentials-in-git
# cask 'git-credential-manager'
# ---- casks
# cask 'arc'
# cask 'dbeaver-community'
# cask 'dupeguru'
# cask 'git-credential-manager' # https://docs.github.com/en/get-started/getting-started-with-git/caching-your-github-credentials-in-git
# cask 'kdiff3'
# cask 'licecap'
# cask 'lulu'
# cask 'microsoft-remote-desktop'
# cask 'microsoft-teams'
# cask 'netspot'
# cask 'ngrok'
# cask 'onyx' # Commented out since I'm on the beta version of macos
# cask 'rancher'
# cask 'telegram-a'
# cask 'tempbox'
# cask 'virtualbox'