-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmac
executable file
·208 lines (184 loc) · 4.68 KB
/
mac
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
#!/bin/bash
echo ""
if ! command -v brew &> /dev/null; then
echo "Congrats on your new Mac Rob! 💻 Let's get you setup. 🎉"
else
echo "Let's get things updated! ⬆️"
fi
echo ""
if ! command -v brew &> /dev/null; then
echo "***********************"
echo "* Installing Brew *"
echo "***********************"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/robtarr/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
echo ""
exit
fi
echo "**************************"
echo "* Installing Formula *"
echo "**************************"
brew install \
bat \
caddy \
difftastic \
direnv \
duf \
exa \
gh \
git \
git-extras \
git-filter-repo \
git-lfs \
git-secrets \
go \
imagemagick \
jq \
mkcert \
ngrok \
nss \
pure \
shellcheck \
tree \
vim
echo ""
brew tap 1Password/homebrew-tap
echo "************************"
echo "* Installing Casks *"
echo "************************"
brew install --cask \
1password \
1password/tap/1password-cli \
alfred \
arduino \
charles \
docker \
dropbox \
figma \
firefox \
flotato \
google-chrome \
google-drive \
gpg-suite-no-mail \
grandperspective \
iterm2 \
kaleidoscope \
karabiner-elements \
keybase \
microsoft-teams \
moom \
obs \
postman \
raspberry-pi-imager \
rocket \
setapp \
skitch \
slack \
spotify \
tableplus \
ultimaker-cura \
visual-studio-code \
vlc \
yubico-authenticator \
zoom
brew tap homebrew/cask-fonts
brew install --cask \
font-fira-code \
font-fira-code-nerd-font
brew tap homebrew/cask-drivers
brew install --cask yubico-yubikey-manager
echo ""
echo "**************************************"
echo "* I couldn't install these Casks *"
echo "**************************************"
echo autodesk-fusion360
echo ""
echo "*********************************"
echo "* Fix Harvest Time Format *"
echo "*********************************"
defaults write ~/Library/Containers/com.getharvest.harvestxapp/Data/Library/Preferences/group.com.getharvest.Harvest.Documents.plist TimeFormat hours_minutes
echo ""
if [ ! -d ~/dotfiles ]; then
echo "************************"
echo "* Clone Dotfiles *"
echo "************************"
git clone https://github.com/robtarr/dotfiles.git ~/dotfiles
echo ""
fi
echo "**********************"
echo "* Setup symlinks *"
echo "**********************"
for link in .gitconfig .gitignore .gitmessage.txt .zshrc; do
if [ -L "$HOME/$link" ]; then
echo "Link '$link' exists"
else
ln -s "$HOME/dotfiles/$link" "$HOME/$link"
fi
done
echo ""
if [ ! nvm -v &> /dev/null ]; then
echo "*****************"
echo "* Setup NVM *"
echo "*****************"
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
echo ""
exit
fi
if [ ! particle -v &> /dev/null ]; then
echo "**************************"
echo "* Setup Particle CLI *"
echo "**************************"
bash <( curl -sL https://particle.io/install-cli )
echo ""
fi
echo "*******************************"
echo "* Removing the dock delay *"
echo "*******************************"
defaults write com.apple.Dock autohide-delay -float 0
killall Dock
echo ""
# To restore to default
# defaults delete com.apple.Dock autohide-delay
# killall Dock
if [ -d "~/.ssh" ]; then
echo "*********************"
echo "* Create ~/.ssh *"
echo "*********************"
mkdir ~/.ssh
echo ""
fi
if [ -d "~/projects" ]; then
echo "*************************"
echo "* Create ~/projects *"
echo "*************************"
mkdir ~/projects
echo ""
fi
if [ -d "~/my-projects" ]; then
echo "****************************"
echo "* Create ~/my-projects *"
echo "****************************"
mkdir ~/my-projects
echo ""
fi
echo "****************************************"
echo "* Here are some other things to do *"
echo "****************************************"
echo ""
echo "Download these apps:"
echo " • Trello https://apps.apple.com/us/app/trello/id1278508951?mt=12"
echo " • Harvest https://apps.apple.com/us/app/harvest/id506189836?ls=1&mt=12"
echo " • Yubikey Manager https://www.yubico.com/support/download/yubikey-manager"
echo ""
echo " • Remove Spotlight shortcut & Setup Alfred"
echo " • Copy ssh keys"
echo " • Copy /etc/hosts"
echo " • Import iTerm profile from ~/dotfiles"
echo " • Setup moom"
echo " • Setup Karabiner"
echo " • Login to mail accounts"
echo " • Setup yubikey https://support.yubico.com/hc/en-us/articles/360016649059"
echo " • Preferences > Security & Preferences > Use Watch to unlock"
echo ""
echo ""