-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
284 lines (249 loc) · 9.02 KB
/
Copy pathMakefile
File metadata and controls
284 lines (249 loc) · 9.02 KB
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
.PHONY: help preinstall-mac preinstall-linux mac linux common install-mac install-common
.PHONY: install-brew install-mas install-gopkg preinstall-env-symlink preinstall-brew
.PHONY: zshconfig sshconfig gitconfig gemconfig psqlrc tmuxconf emacsconfig
.PHONY: xcode sublime-symlink sublime-packages sublime-merge-packages hammerspoon karabiner-elements
.PHONY: retired-kwm retired-itunes
BREW = HOMEBREW_NO_ASK=1 brew
help:
@echo "make preinstall-mac mac install-mac"
@echo "make preinstall-linux linux"
@echo ""
@echo "NOTE:"
@echo ""
@echo "* Preinstall phases will require manual intervention."
@echo "* As soon as 1Password is installed, configure it and save ssh key."
@echo "* See MacSetup.md and manual/ for manual configuration steps."
@echo ""
preinstall-mac: preinstall-env-symlink preinstall-brew
preinstall-linux:
mac: common sublime-symlink sublime-packages sublime-merge-packages xcode hammerspoon karabiner-elements
linux: common
common: zshconfig sshconfig gitconfig gemconfig psqlrc tmuxconf emacsconfig
install-mac: install-brew install-mas install-common
install-common: install-gopkg
preinstall-env-symlink:
test -d ~/env || ln -s ~/Library/'Mobile Documents/com~apple~CloudDocs/env' ~/
preinstall-brew:
which brew || /bin/bash -c "$$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
grep /opt/homebrew/bin /etc/paths || { echo "*** Manually prepend /opt/homebrew/bin to /etc/paths (probably after /usr/local/bin but before the rest) ***"; exit 1; }
zshconfig:
rm -f ~/.zshrc ~/.zshenv
ln -s ~/env/config/zshenv ~/.zshenv
ln -s ~/env/config/zshrc ~/.zshrc
sshconfig:
mkdir -p -m 700 ~/.ssh
mkdir -p -m 700 ~/.ssh/control
rm -f ~/.ssh/config
ln -s ~/env/config/ssh-config ~/.ssh/config
gitconfig:
rm -f ~/.gitconfig
ln -s ~/env/config/gitconfig ~/.gitconfig
gemconfig:
rm -f ~/.gemrc
ln -s ~/env/config/gemrc ~/.gemrc
psqlrc:
rm -f ~/.psqlrc
ln -s ~/env/config/psqlrc ~/.psqlrc
tmuxconf:
rm -f ~/.tmux.conf
ln -s ~/env/config/tmux.conf ~/.tmux.conf
emacsconfig:
rm -f ~/.emacs
ln -s ~/env/config/emacs ~/.emacs
xcode:
mkdir -p ~/Library/Developer/Xcode/UserData/
rm -rf ~/Library/Developer/Xcode/UserData/CodeSnippets
ln -s ~/env/XcodeUserData/CodeSnippets ~/Library/Developer/Xcode/UserData/
rm -rf ~/Library/Developer/Xcode/UserData/FontAndColorThemes
ln -s ~/env/XcodeUserData/FontAndColorThemes ~/Library/Developer/Xcode/UserData/
rm -rf ~/Library/Developer/Xcode/UserData/KeyBindings
ln -s ~/env/XcodeUserData/KeyBindings ~/Library/Developer/Xcode/UserData/
sublime-symlink:
rm -rf ~/env/bin/subl
ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl ~/env/bin/
sublime-packages:
mkdir -p ~/"Library/Application Support/Sublime Text/Packages"
rm -rf ~/"Library/Application Support/Sublime Text/Packages/User"
ln -s ~/env/Sublime/User ~/"Library/Application Support/Sublime Text/Packages/User"
sublime-merge-packages:
mkdir -p ~/"Library/Application Support/Sublime Merge/Packages"
rm -rf ~/"Library/Application Support/Sublime Merge/Packages/User"
ln -s ~/env/SublimeMerge/User ~/"Library/Application Support/Sublime Merge/Packages/User"
hammerspoon:
rm -rf ~/.hammerspoon
ln -s ~/env/config/hammerspoon ~/.hammerspoon
karabiner-elements:
mkdir -p ~/.config/karabiner/
rm -f ~/.config/karabiner/karabiner.json
ln -s ~/env/config/karabiner.json ~/.config/karabiner/karabiner.json
retired-kwm:
rm -rf ~/.kwm
ln -s ~/env/config/kwm ~/.kwm
retired-itunes:
rm -rf ~/Library/iTunes/Scripts
mkdir -p ~/Library/iTunes
ln -s ~/env/iTunesScripts ~/Library/iTunes/Scripts
install-brew:
# most important
$(BREW) install rsync
$(BREW) install syncthing
$(BREW) services start syncthing
$(BREW) install --cask 1password-cli
$(BREW) install mas
$(BREW) install --cask chatgpt
$(BREW) install --cask heynote
$(BREW) install --cask hammerspoon
$(BREW) install --cask secretive
$(BREW) install --cask keyboard-maestro
$(BREW) install --cask sublime-text
$(BREW) install --cask sublime-merge
$(BREW) install --cask iterm2
$(BREW) install --cask rectangle-pro
$(BREW) install --cask transmit
$(BREW) install --cask zoom
$(BREW) install --cask telegram
$(BREW) install --cask telegram-desktop
$(BREW) install --cask dash
$(BREW) install --cask workflowy
$(BREW) install --cask google-chrome
$(BREW) install --cask battery
$(BREW) install --cask zed
# core dev tools
$(BREW) install atuin
$(BREW) install fzf
$(BREW) install zoxide
$(BREW) install mosh
$(BREW) install go
$(BREW) install node
$(BREW) install deno
$(BREW) install uv
$(BREW) install direnv
$(BREW) install pt
$(BREW) install watch
$(BREW) install cmake
$(BREW) install graphviz
$(BREW) install xcodegen
$(BREW) install tailwindcss
# various tools
$(BREW) install asciinema
$(BREW) install wget
$(BREW) install autojump
$(BREW) install figlet
$(BREW) install up
$(BREW) install cloc
$(BREW) install rlwrap
$(BREW) install icdiff
$(BREW) install s3cmd
$(BREW) install tree
$(BREW) install awscli
$(BREW) install ffmpeg
$(BREW) install rclone
$(BREW) install restic
$(BREW) install glow
$(BREW) install qsv
$(BREW) install xsv
$(BREW) install virtualenv
$(BREW) install cocoapods
# $(BREW) install jq
# $(BREW) install hub
# $(BREW) install swiftlint
# $(BREW) install heroku
# casks
$(BREW) install --cask aqua-voice
$(BREW) install --cask asana
$(BREW) install --cask carbon-copy-cloner
$(BREW) install --cask daisydisk
$(BREW) install --cask keyboard-cleaner
$(BREW) install --cask hex-fiend
# $(BREW) install --cask visual-studio-code
$(BREW) install --cask hazel
$(BREW) install --cask ngrok
$(BREW) install --cask sf-symbols
$(BREW) install --cask transmission
$(BREW) install --cask optimage
$(BREW) install --cask trezor-suite
$(BREW) install --cask omnioutliner
# $(BREW) install --cask krisp
# fonts
$(BREW) install --cask font-jetbrains-mono
$(BREW) install --cask font-ia-writer-duo
$(BREW) install --cask font-ia-writer-mono
$(BREW) install --cask font-ia-writer-quattro
# large downloads
# $(BREW) install --cask android-studio
$(BREW) tap tinygo-org/tools
$(BREW) trust --formula tinygo-org/tools/tinygo
$(BREW) install tinygo-org/tools/tinygo
install-mas:
mas install 803453959 # Slack
mas install 406056744 # Evernote
mas install 1388020431 # DevCleaner
mas install 1006087419 # SnippetsLab
mas install 775737590 # iA Writer
mas install 488764545 # The Clock
mas install 412155298 # Nag
mas install 425424353 # The Unarchiver
mas install 1475387142 # Tailscale
mas install 987045856 # FTPServer
mas install 1365531024 # 1Blocker
mas install 1188020834 # OverPicture
mas install 1160374471 # PiPifier
-mas install 1376402589 # StopTheMadness (legacy)
mas install 1569813296 # 1Password for Safari
mas install 1622835804 # Kagi Search
mas install 1549370672 # Save to Raindrop.io
mas install 1136220934 # Infuse
mas install 1489816366 # Mic Drop — mute
mas install 1508732804 # Soulver 3
mas install 1499198946 # Structured
mas install 6747497179 # Marked
mas install 6739505345 # Hyperspace
mas install 920404675 # Monodraw
# mas install 1278508951 # Trello
# mas install 904280696 # Things
# mas install 961632517 # Be Focused Pro
## apple
mas install 497799835 # Xcode
mas install 1289583905 # Pixelmator Pro
mas install 361309726 # Pages
mas install 361304891 # Numbers
# mas install 361285480 # Keynote
# mas install 408981434 # iMovie
# mas install 682658836 # GarageBand
# mas install 634148309 # Logic Pro X
## microsoft
# mas install 823766827 # OneDrive
mas install 1295203466 # Windows App
# mas install 462054704 # Microsoft Word
# mas install 462058435 # Microsoft Excel
# mas install 462062816 # Microsoft PowerPoint
# mas install 784801555 # Microsoft OneNote
## development
mas install 899247664 # TestFlight
mas install 6476452351 # DevHub
## games/entertainment
# mas install 1141323850 # C. Anatomy 2021
# mas install 1464649839 # Butter Royale
# mas install 1489275350 # Crossy Road Castle
mas install 1541482816 # PSWD
-mas install 482898991 # LiveReload (legacy)
-mas install 1057705278 # ColorSquid — mix colors (legacy)
-mas install 960391457 # BayIcons (legacy)
-mas install 1296180121 # Iris (legacy)
# mas install 1176895641 # Spark
mas install 556381974 # IconFly
mas install 867814185 # Acana QR Code Generator
mas install 1485436674 # A Companion for SwiftUI
mas install 640199958 # Developer
mas install 929960914 # Timer RH
# mas install 1380446739 # InjectionIII
-mas install 452840086 # Receigen (legacy)
-mas install 539188678 # Unique Code Generator (legacy)
mas install 1091189122 # Bear
mas install 1153157709 # Speedtest
mas install 905953485 # NordVPN
mas install 1663047912 # Screens 5
mas install 6740315592 # Spokenly
install-gopkg:
go install github.com/cortesi/modd/cmd/modd@latest
go install golang.org/x/tools/gopls@latest