forked from jeffbyrnes/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrew.sh
executable file
·292 lines (237 loc) · 6.86 KB
/
brew.sh
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
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
#!/usr/bin/env bash
# Install command-line tools using Homebrew.
# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
# Upgrade any already-installed formulae.
brew upgrade
# Add Homebrew to $PATH and set useful env vars
if command -v /opt/homebrew/bin/brew &>/dev/null; then
eval "$(/opt/homebrew/bin/brew shellenv)"
elif command -v /usr/local/bin/brew &>/dev/null; then
eval "$(/usr/local/bin/brew shellenv)"
else
HOMEBREW_PREFIX=""
fi
# Install GNU core utilities (those that come with macOS are outdated).
# Don’t forget to add `$(brew --prefix coreutils)/libexec/gnubin` to `$PATH`.
brew install coreutils
# Install some other useful utilities like `sponge`.
brew install moreutils
# Install GNU `find`, `locate`, `updatedb`, and `xargs`, `g`-prefixed.
brew install findutils
# Install GNU `sed`, overwriting the built-in `sed`.
brew install gnu-sed
# Install a modern version of Bash.
brew install bash
brew install bash-completion@2
# Set up GNU core utilities (those that come with macOS are outdated).
# shellcheck disable=SC2016
echo 'Be sure to add `$(brew prefix coreutils|findutils|gnu-sed)/libexec/gnubin` to `$PATH`.'
ln -s "${HOMEBREW_PREFIX}/bin/gsha256sum" "${HOMEBREW_PREFIX}/bin/sha256sum"
if ! grep -Fq "$HOMEBREW_PREFIX/bin/bash" /etc/shells; then
echo "$HOMEBREW_PREFIX/bin/bash" | sudo tee -a /etc/shells
chsh -s "$HOMEBREW_PREFIX/bin/bash"
fi
# Install `wget` with IRI support.
brew install wget
# Install GnuPG to enable PGP-signing commits.
brew install gnupg
# Install more recent versions of some macOS tools.
brew install vim
brew install grep
# Disabled b/c brew-installed OpenSSH does not play nicely with macOS Keychain + SSH
# brew install openssh
# brew install screen
brew install php
brew install gmp
# Install font tools.
# brew tap bramstein/webfonttools
# brew install sfnt2woff
# brew install sfnt2woff-zopfli
# brew install woff2
# Install some CTF tools; see https://github.com/ctfs/write-ups.
# brew install aircrack-ng
# brew install bfg
# brew install binutils
# brew install binwalk
# brew install cifer
# brew install dex2jar
# brew install dns2tcp
# brew install fcrackzip
# brew install foremost
# brew install hashpump
# brew install hydra
# brew install john
# brew install knock
# brew install netpbm
# brew install nmap
# brew install pngcheck
# brew install socat
# brew install sqlmap
# brew install tcpflow
# brew install tcptrace
# brew install ucspi-tcp' # `tcpserver` etc
# brew install xpdf
brew install xz
# Install other useful binaries.
brew install ack
# brew install exiv2
brew install git
# brew install git-lfs
# brew install gs
# brew install imagemagick
# brew install lua
# brew install lynx
# brew install p7zip
# brew install pigz
# brew install pv
# brew install rename
# brew install rlwrap
brew install ssh-copy-id
brew install tree
# brew install vbindiff
# brew install zopfli
# Jeff Byrnes additions from Mathias Bynens’ upstreams
# Handy git additions
brew install git-extras
brew install gh
# Install Generic Colouriser
brew install grc
# Replace system cURL with an updated one
brew install curl
# Install HTTPie, a better cURL
brew install httpie
# Install yet more useful binaries.
brew install fd
brew install fzf
brew install jq
brew install ripgrep
brew install testssl
# Install the LESS CSS precompiler
brew install less
brew install libiconv
brew install zlib
# cat, with color
brew install ccat
# syntax highlighting cat replacement
brew install bat
# Nice ls replacement
brew install eza
# Sweet text-based shell recording tool
# https://github.com/asciinema/asciinema
brew install asciinema
# # Additional PHP tools
# brew install composer
# brew install php-code-sniffer
# brew install php-cs-fixer
# brew install phplint
# brew install phpmd
# brew install phpunit
# Install typefaces
brew tap homebrew/cask-fonts
brew install --cask font-fira-code-nerd-font
brew install --cask font-hack-nerd-font
brew install --cask font-inconsolata-nerd-font
brew install --cask font-monaspace
# Install bash completions
brew install brew-cask-completion
brew install bundler-completion
brew install docker-completion
brew install gem-completion
# brew install kitchen-completion
brew install rake-completion
# brew install vagrant-completion
# GPG agent for signing commits
brew install pinentry-mac
brew install icu4c
brew install boost
brew install diff-so-fancy
brew install go
# Install shfmt for shell parsing & linting/formatting
go install mvdan.cc/sh/v3/cmd/shfmt@latest
brew install man2html
brew install node
brew install yarn
brew install python
brew install black
brew install flake8
brew install git-sweep3k
# Install rbenv for multiple Ruby versions
brew install ruby-build
brew install rbenv
brew install reattach-to-user-namespace
# brew install the_silver_searcher
# brew install tidy-html5
brew install tmux
brew install watch
# brew install aws-shell
# Linter for bash scripts
brew install shellcheck
# Linter for Dockerfiles
brew install hadolint
# Linter for prose
brew install proselint
# Linter for YAML
brew install yamllint
# # Linter for Perl
# brew install perltidy
# # Terraform things
# brew install terraform
# # Linter for Terraform configs
# brew install tflint
# Starship shell prompt
brew install starship
# Emoji Wine Alfred Workflow requirement
# Friendly PIL fork (Python Imaging Library)
brew install pillow
# Useful Quicklook additions
brew install --cask betterzip
brew install --cask qlcolorcode
brew install --cask qlimagesize
brew install --cask qlmarkdown
brew install --cask qlprettypatch
brew install --cask qlstephen
brew install --cask qlvideo
brew install --cask quicklook-csv
brew install --cask quicklook-json
brew install --cask quicklookase
brew install --cask webpquicklook
# Install Dart Sass
brew install sass/sass/sass
# Useful macOS apps
brew install --cask chronosync
brew install --cask dash
# brew install --cask diffmerge
brew install --cask discord
brew install --cask graphicconverter
brew install --cask handbrake
brew install --cask imageoptim
brew install --cask ivolume
brew install --cask kaleidoscope
brew install --cask keepingyouawake
# brew install --cask keybase
brew install --cask latest
# brew install --cask macdown
brew install --cask macupdater
brew install --cask rocket
brew install --cask suspicious-package
brew install --cask syntax-highlight
brew install --cask tower
brew install --cask transmit
brew install --cask vlc
brew install --cask xld
# 1Password 8 CLI
brew install --cask 1password-cli
# CLI for Mac App Store
brew install mas-cli/tap/mas
# mas install 1055511498 # Day One
mas install 975937182 # Fantastical
mas install 6444602274 # Ivory
mas install 429449079 # Patterns
mas install 1529448980 # Reeder 5
# mas install 1518036000 # Sequel Ace
# mas install 803453959 # Slack
# mas install 1508732804 # Soulver 3
mas install 1176895641 # Spark
# mas install 1278508951 # Trello
mas install 1482454543 # Twitter