-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-homebrew
executable file
·167 lines (155 loc) · 3.05 KB
/
install-homebrew
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
#!/usr/bin/env bash
set -euo pipefail
export HOMEBREW_NO_ENV_HINTS=1
# enable homebrew in path in case we just installed it.
export PATH=/opt/homebrew/bin:$PATH
# install homebrew
if [ ! "$(command -v brew)" ]; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
# update homebrew packages
brew update --quiet
# ensure that xcode is installed. We'll do this using the `mas` cli.
if ! command -v mas &>/dev/null ; then
echo "Installing mas"
brew install --quiet --formula mas
fi
if [[ "$(xcode-select -p)" != "/Applications/Xcode.app/Contents/Developer" ]]; then
echo "Installing xcode"
xcode_id=$(mas search xcode | rg '^\s*\d+\s+Xcode\s+\([\d\.]+\)' | awk '{print $1}')
mas install "$xcode_id"
echo "Accepting license agreement"
sudo xcodebuild -license accept
fi
# openssh does not play well with macos
# microsoft-remote-desktop is deprecated
# dog is no longer maintained
# logi-options-plus is terrible when updating via homebrew
# dotnet-sdk no longer used
for pkg in openssh microsoft-remote-desktop dog logi-options-plus logi-options+ dotnet-sdk; do
if brew list -1 | grep -q "^${pkg}\$"; then
echo "Removing $pkg"
brew remove -f $pkg
fi
done
brew upgrade --quiet
brew install --quiet --formula \
aichat \
asdf \
bash-language-server \
bat-extras \
broot \
btop \
bzip2 \
caddy \
chruby \
clojure \
clojure-lsp \
cmake \
colima \
coreutils \
devcontainer \
direnv \
dust \
eza \
fd \
fileicon \
fx \
gh \
git-extras \
git-machete \
glow \
gnuplot \
golang \
gource \
gradle \
grpcurl \
gum \
helm \
hexyl \
htop \
httpie \
hwatch \
kompose \
lazydocker \
lazygit \
less \
llm \
lsd \
lua \
lua-language-server \
luajit-openresty \
luarocks \
lxc \
mingw-w64 \
mtr \
mutagen-io/mutagen/mutagen \
neovim \
nmap \
nvr \
ollama \
opam \
pam-reattach \
pandoc \
pipx \
protobuf \
pstree \
pyenv \
ripgrep \
ruby-install \
ruff \
sccache \
semgrep \
shellcheck \
tailspin \
temporal \
tig \
tokei \
tmux \
tree \
typescript-language-server \
uv \
viddy \
watch \
web-ext \
wget \
xz \
zig \
zlib \
zsh-autosuggestions \
zoxide \
;
brew install --quiet --cask --force \
1password \
1password-cli \
anki \
caffeine \
chatbox \
cleanshot \
discord \
discord \
firefox \
font-fira-code-nerd-font \
font-fantasque-sans-mono \
font-fantasque-sans-mono-nerd-font \
font-hack-nerd-font \
imhex \
istat-menus \
jetbrains-toolbox \
kitty \
mitmproxy \
ngrok \
obs \
obsidian \
racket \
raycast \
signal \
sublime-text \
utm \
yubico-yubikey-manager \
zed \
;
brew install --quiet --cask --no-quarantine \
alacritty \
;
brew autoremove --quiet