-
Notifications
You must be signed in to change notification settings - Fork 11
/
install.sh
executable file
·184 lines (157 loc) · 4.29 KB
/
install.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
#!/usr/bin/env bash
# requires xcode and tools!
xcode-select -p || exit "XCode must be installed! (use the app store)"
# helpers
# function echo_ok { echo -e '\033[1;32m'"$1"'\033[0m'; }
function echo_warn { echo -e '\033[1;33m'"$1"'\033[0m'; }
# function echo_error { echo -e '\033[1;31mERROR: '"$1"'\033[0m'; }
echo_warn "Starting bootstrapping"
# Check for Homebrew, install if we don't have it
if test ! $(which brew); then
echo "Installing homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Update homebrew recipes
brew update
# Install GNU `find`, `locate`, `updatedb`, and `xargs`, g-prefixed
brew install findutils
PACKAGES=(
bat
create-dmg
ffmpeg
fx
gh
googler
hub
iftop
imagemagick
jq
libjpeg
libmemcached
markdown
mas
mc
node
reminders-cli
speedtest-cli
ssh-copy-id
tree
vim
wget
youtube-dl
)
echo_warn "Installing packages..."
brew install ${PACKAGES[@]}
echo_warn "Cleaning up..."
brew cleanup
CASKS=(
balenaetcher
docker
firefox
github
google-chrome
iterm2
microsoft-teams
postman
signal
sourcetree
visual-studio-code
)
echo_warn "Installing cask apps..."
brew install --cask ${CASKS[@]}
echo_warn "Installing fonts..."
brew tap homebrew/cask-fonts
FONTS=(
font-3270-nerd-font
font-fira-mono-nerd-font
font-inconsolata-go-nerd-font
font-inconsolata-lgc-nerd-font
font-inconsolata-nerd-font
font-monofur-nerd-font
font-overpass-nerd-font
font-ubuntu-mono-nerd-font
font-agave-nerd-font
font-arimo-nerd-font
font-anonymice-nerd-font
font-aurulent-sans-mono-nerd-font
font-bigblue-terminal-nerd-font
font-bitstream-vera-sans-mono-nerd-font
font-blex-mono-nerd-font
font-caskaydia-cove-nerd-font
font-code-new-roman-nerd-font
font-cousine-nerd-font
font-daddy-time-mono-nerd-font
font-dejavu-sans-mono-nerd-font
font-droid-sans-mono-nerd-font
font-fantasque-sans-mono-nerd-font
font-fira-code-nerd-font
font-go-mono-nerd-font
font-gohufont-nerd-font
font-hack-nerd-font
font-hasklug-nerd-font
font-heavy-data-nerd-font
font-hurmit-nerd-font
font-im-writing-nerd-font
font-iosevka-nerd-font
font-jetbrains-mono-nerd-font
font-lekton-nerd-font
font-liberation-nerd-font
font-meslo-lg-nerd-font
font-monoid-nerd-font
font-mononoki-nerd-font
font-mplus-nerd-font
font-noto-nerd-font
font-open-dyslexic-nerd-font
font-profont-nerd-font
font-proggy-clean-tt-nerd-font
font-roboto-mono-nerd-font
font-sauce-code-pro-nerd-font
font-shure-tech-mono-nerd-font
font-space-mono-nerd-font
font-terminess-ttf-nerd-font
font-tinos-nerd-font
font-ubuntu-nerd-font
font-victor-mono-nerd-font
)
brew install --cask ${FONTS[@]}
brew tap buo/cask-upgrade # Cask upgrade
echo_warn "Installing Ruby gems"
RUBY_GEMS=(
bundler
filewatcher
cocoapods
)
sudo gem install ${RUBY_GEMS[@]}
echo_warn "Installing global npm packages..."
npm install marked -g
echo_warn "Configuring macOS..."
# Tab between buttons on an macOS
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
# Advanced Option: Always Search Within Folder
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
# Advanced Option: Disable .DS_Store File Creation
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
# Advanced Option: Show Path Bar
defaults write com.apple.finder ShowPathbar -bool true
# Require password as soon as screensaver or sleep mode starts
defaults write com.apple.screensaver askForPassword -int 1
defaults write com.apple.screensaver askForPasswordDelay -int 0
echo_warn "Installing App Store Apps"
mas install 1437681957 # Audiobook Builder
mas install 640199958 # Developer
mas install 1355679052 # Dropover
mas install 1081457679 # Ebook Converter
mas install 682658836 # GarageBand
mas install 408981434 # iMovie
mas install 409183694 # Keynote
mas install 409203825 # Numbers
mas install 409201541 # Pages
mas install 1289583905 # Pixelmator Pro
mas install 1496833156 # Playgrounds
mas install 803453959 # Slack
mas install 1006087419 # SnippetsLab
mas install 747648890 # Telegram
mas install 899247664 # TestFlight
mas install 1490879410 # TrashMe 3
mas install 1147396723 # WhatsApp
echo_warn "Bootstrapping complete"