-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap.sh
executable file
·204 lines (170 loc) · 6.76 KB
/
bootstrap.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
#!/bin/bash
############################################################################
# Setup symlinks for .dotfiles
############################################################################
cd ~
echo "Setting up symlinks..."
touch ~/.workrc
touch ~/.bash_profile
mkdir -p ~/Library/Application\ Support/Code/User
ln -sfF ~/dotfiles/.inputrc ~
ln -sfF ~/dotfiles/.vimrc ~
ln -sfF ~/dotfiles/.zshrc ~
ln -sfF ~/dotfiles/.zprofile ~
ln -sfF ~/dotfiles/.code-settings.jsonc ~/Library/Application\ Support/Code/User/settings.json
ln -sfF ~/dotfiles/.code-keybindings.jsonc ~/Library/Application\ Support/Code/User/keybindings.json
############################################################################
# Shell
############################################################################
echo "Installing Homebrew & Homebrew Cask..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew tap caskroom/versions
eval "$(/opt/homebrew/bin/brew shellenv)"
echo "Installing zsh utilities..."
brew install git zsh
chsh -s /bin/zsh
git config --global credential.helper osxkeychain
git config --global user.email "schaich.kevin@gmail.com"
git config --global user.name "kevinschaich"
############################################################################
# Homebrew
############################################################################
echo "Installing apps..."
# brew install ableton-live-suite # doesn't work
# brew install adobe-creative-cloud
# brew install adobe-dng-converter
# brew install screens
# brew install screens-connect
# brew install sketch # need older version
# brew install bitbar
# brew install cyberduck
brew install arc
brew install figma
brew install geekbench
brew install google-drive
brew install kap
brew install messenger
# brew install mongodb-community
# brew install mongodb-compass
# brew install mongodb-database-tools
brew install notion
# brew install postman
# brew install proxyman
# brew install rocket
brew install signal
brew install slack
brew install spotify
brew install starship
# brew install steam
# brew install transmission
brew install cursor
brew install warp
brew install whatsapp
brew install homebrew/cask/docker
brew install stats
echo "Installing terminal utilities..."
brew install ag
brew install mas
brew install tree
brew install tldr
brew install unrar
brew install wget
brew install node
brew install yarn
brew install python@3.11
mkdir -p "$HOME/.zsh"
brew tap homebrew/cask-fonts
brew install font-hack
# npm config set strict-ssl true -g
# npm install --global mintable
# mkdir ~/bitbar
# wget https://raw.githubusercontent.com/matryer/bitbar-plugins/39e8f252ed69d0dd46bbe095299e52279e86d737/Finance/mintable.1h.zsh --output-document ~/bitbar/mintable.1h.zsh
# chmod u+x ~/bitbar/mintable.1h.zsh
################################################################################
# Trackpad, mouse, keyboard, Bluetooth accessories, and input
###############################################################################
echo "Disabling press-and-hold for special keys in favor of key repeat"
defaults write -g ApplePressAndHoldEnabled -bool false
defaults write -g KeyRepeat -int 2
defaults write -g InitialKeyRepeat -int 15
###############################################################################
# Finder
###############################################################################
echo "Show the ~/Library folder by default"
chflags nohidden ~/Library/
echo "Show all filename extensions in Finder by default"
defaults write -g AppleShowAllExtensions -bool true
echo "Show status bar in Finder by default"
defaults write com.apple.finder ShowStatusBar -bool true
echo "Show path bar in Finder by default"
defaults write com.apple.finder ShowPathBar -bool true
echo "Display full POSIX path as Finder window title"
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
echo "Disable the warning when changing a file extension"
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
echo "Allowing text selection in Quick Look/Preview in Finder by default"
defaults write com.apple.finder QLEnableTextSelection -bool true
echo "Set user folder as the default location for new Finder windows"
defaults write com.apple.finder NewWindowTargetPath -string "file://${HOME}"
###############################################################################
# VSCode
###############################################################################
echo "Installing VSCode Extensions"
# cursor --install-extension anseki.vscode-color
# cursor --install-extension awxxxxxx.vscode-mdx-checker
# cursor --install-extension bradlc.vscode-tailwindcss
# cursor --install-extension bungcip.better-toml
# cursor --install-extension christian-kohler.npm-intellisense
# cursor --install-extension christian-kohler.path-intellisense
# cursor --install-extension dang.package-json-helper
# cursor --install-extension eamodio.gitlens
# cursor --install-extension eriklynd.json-tools
cursor --install-extension esbenp.prettier-vscode
cursor --install-extension github.copilot
cursor --install-extension github.copilot-chat
cursor --install-extension github.github-vscode-theme
cursor --install-extension github.vscode-github-actions
cursor --install-extension JannisX11.batch-rename-extension
# cursor --install-extension jvitor83.typings-autoinstaller
cursor --install-extension kamikillerto.vscode-colorize
cursor --install-extension mikestead.dotenv
cursor --install-extension ms-azuretools.vscode-docker
cursor --install-extension ms-python.debugpy
cursor --install-extension ms-python.isort
cursor --install-extension ms-python.python
cursor --install-extension ms-python.vscode-pylance
# cursor --install-extension ms-vscode-remote.remote-containers
cursor --install-extension ms-vscode.sublime-keybindings
cursor --install-extension prisma.prisma
cursor --install-extension richie5um2.vscode-sort-json
cursor --install-extension sketchbuch.vsc-packages
cursor --install-extension streetsidesoftware.code-spell-checker
# cursor --install-extension unifiedjs.vscode-mdx
# cursor --install-extension wix.vscode-import-cost
cursor --install-extension yoavbls.pretty-ts-errors
# cursor --install-extension zyrong.node-modules
###############################################################################
# MAS-only Apps
###############################################################################
read -p "Logged into Mac App Store? Answer [y/n] " -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
# Things 3
# mas install 904280696
# Magnet
mas install 441258766
# Blackmagic Disk Speed Test
mas install 425264550
# Ookla Speedtest
mas install 1153157709
# The Unarchiver
# mas install 425424353
# Affinity Photo
mas install 824183456
# Infuse
mas install 1136220934
# Wifi Explorer
mas install 494803304
fi
echo "Done!"