-
Notifications
You must be signed in to change notification settings - Fork 0
/
provision.sh
executable file
·152 lines (121 loc) · 3.71 KB
/
provision.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
#!/bin/sh
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
echo | ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install homebrew-cask
brew tap caskroom/versions
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
source ~/.nvm/nvm.sh
nvm install stable
rm "$HOME/Library/Application Support/Code - Insiders/User/settings.json"
ln -s ~/dev/public/settings.json "$HOME/Library/Application Support/Code - Insiders/User/settings.json"
rm "$HOME/Library/Application Support/Code - Insiders/User/extensions.json"
ln -s ~/dev/public/extensions.json "$HOME/Library/Application Support/Code - Insiders/User/extensions.json"
rm "/usr/local/bin/code-insiders"
rm "/usr/local/bin/code"
ln -s "/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/bin/code" "/usr/local/bin/c"
ln -s "/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code" "/usr/local/bin/codestable"
yarn global add eslint prettier
brew tap dart-lang/dart
read -r -d '' BREW_CASK_INSTALL_STUFF << EOM
adobe-acrobat-reader
adobe-digital-editions
amazon-drive
atom-beta
balsamiq-mockups
beyond-compare
caffeine
calibre
dropbox
filezilla
firefox
firefox-nightly
gas-mask
gimp
google-backup-and-sync
google-chrome
google-chrome-canary
google-cloud-sdk
intellij-idea
iterm2
megasync
nginx
plex-media-server
quartz
safari-technology-preview
sketch
skitch
spectacle
virtualbox
visual-studio-code
visual-studio-code-insiders
EOM
brew cask reinstall $BREW_CASK_INSTALL_STUFF
read -r -d '' BREW_INSTALL_STUFF << EOM
aria2
dart
docker
docker-compose
duti
ffmpeg
fswatch
git-flow
gnu-sed
grep
gs
hub
id3lib
imagemagick
jenv
p7zip
rename
yarn
vlc
wget
wine
rbenv
ruby-build
EOM
brew install $BREW_INSTALL_STUFF
open /Applications/Spectacle.app
open "/Applications/Backup and Sync.app"
# launchctl Spectacle
code --install-extension ms-vscode.cpptools
ln -s ~/dropbox/dev ~/dev
ln -s ~/dropbox/downloads ~/downloads
# ~/Library/Application\ Support/Google/Chrome\ Canary/Default/Preferences
# See devtools.preferences.uiTheme
cp ~/Library/Application\ Support/Google/Chrome\ Canary/Default/Preferences /tmp/canary-prefs-pre.json
node > /tmp/canary-prefs <<EOF
const data = require('/tmp/canary-prefs-pre');
console.log(data.devtools.preferences.uiTheme);
EOF
curl -sL https://github.com/shyiko/jabba/raw/master/install.sh | bash && . ~/.jabba/jabba.sh
jabba install 1.8
brew install https://raw.githubusercontent.com/turforlag/homebrew-cervezas/master/pdftk.rb
# foxit reader
gcloud components install beta
runtimeconfig.googleapis.com
mv /usr/local/bin/atom-beta /usr/local/bin/atom
sudo mv ~/Desktop ~/desktop
sudo mv ~/Downloads/ ~/downloads
# https://github.com/jekyll/jekyll/issues/6690
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
source ~/.bash_profile
rbenv install 2.6.0
rbenv global 2.6.0
gem install jekyll
# manual steps
# https://www.jetbrains.com/idea/download/download-thanks.html?platform=mac
# System Preferences → Security & Privacy → General > Enable Oracle for virtualbox
# curl -L https://aka.ms/windev_VM_virtualbox | bsdtar -xvf-
# /Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary --disable-web-security --user-data-dir
# nightly yarn
# curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --nightly
# Keep folders on top when sorting by name
# add favorites
# plutil -convert xml1 ~/Library/Preferences/com.apple.finder.plist
# nightly updates
# gcloud components update
# ~/Library/Containers/com.apple.mail/Data/Library/Preferences
# sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# npm install --global pure-prompt