-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap
193 lines (155 loc) · 6.18 KB
/
bootstrap
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
#!/usr/bin/env bash
# Ask system password
sudo echo "Please type password before running the script"
# Symbolic link with .dotfiles to ~/$HOME directory
find "$(pwd)" -name ".*" -type f -maxdepth 1 | xargs -I '{}' ln -s '{}' ~
# Symbolic link with .profile to ~/$HOME directory
find "$(pwd)" -name ".profile" -type d | xargs -I '{}' ln -s '{}' ~/.profile
# Install the CLI tools for Xcode
xcode-select --install
# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install formulas
brew install ansible
brew install awscli
brew install direnv
brew install ffmpeg
brew install git
brew install graphicsmagick
brew install graphviz
brew install httpie
brew install imagemagick
brew install jq
brew install mysql
brew install poppler
brew install postgresql
brew install pstree
brew install redis
brew install tfenv
brew install tree
brew install webkit2png
brew install webpack
brew install wget
brew install wifi-password
brew install yarn
brew tap heroku/brew && brew install heroku
brew tap thoughtbot/formulae && brew install parity
# Install iterm & configuration
brew install --cask iterm2
cp iterm/profile.json ~/Library/Application\ Support/iTerm2/DynamicProfiles/profile.json
# Install zsh & oh-my-zsh configuration
brew install zsh zsh-completions
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# iTerm2: Install Shell Integration
curl -L https://iterm2.at/install_shell_integration.sh | bash
brew install rbenv
rbenv init
brew install nvm
# Create a folder for the current user .nvm where the files will reside
mkdir ~/.nvm
# Reload zsh
source ~/.zshrc
# Install a node version
nvm install node
# Use the node version installed with NVM
nvm use node
# Print the node version
nvm run node --version
echo 'export NVM_DIR="$HOME/.nvm"
NVM_HOMEBREW="/usr/local/opt/nvm/nvm.sh"
[ -s "$NVM_HOMEBREW" ] && \. "$NVM_HOMEBREW"' >> ~/.zshenv
# cask
brew install --cask 1password
brew install --cask alfred
# brew install --cask amazon-chime
brew install --cask brave-browser
brew install --cask caffeine
brew install --cask chromedriver
brew install --cask chromium
brew install --cask dash
brew install --cask docker
brew install --cask evernote
brew install --cask google-chrome
brew install --cask google-drive
brew install --cask imageoptim
brew install --cask kap
brew install --cask keka
# brew install --cask keybase
# brew install --cask kodi
brew install --cask microsoft-teams
brew install --cask openemu
brew install --cask postico
brew install --cask postman
brew install --cask session-manager-plugin
brew install --cask skype
brew install --cask slack
brew install --cask sourcetree
brew install --cask spotify
brew install --cask stremio
brew install --cask teamviewer
brew install --cask tor-browser
brew install --cask virtualbox
brew install --cask vlc
brew install --cask zoom
# Install Spectacle & configuration
brew install --cask spectacle
cp spectacle/shortcuts.json ~/Library/Application\ Support/Spectacle/Shortcuts.json
# Install Atom & configuration
brew install --cask atom
find "$(pwd)" -name "atom" -type d | xargs -I '{}' ln -s '{}' ~/.atom
apm install package-sync
#Install VSCode & configuration
brew install --cask visual-studio-code
find "$(pwd)" -name "settings.json" -type d | xargs -I '{}' ln -s '{}' ~/.settings.json
cp 'code/settings.json' ~/Library/Application\ Support/Code/User
# Change screenshots format
defaults write com.apple.screencapture type jpg
mkdir ~/Pictures/Screenshots/
defaults write com.apple.screencapture location ~/Pictures/Screenshots
# Require password immediately after sleep or screen saver begins
defaults write com.apple.screensaver askForPassword -int 1
defaults write com.apple.screensaver askForPasswordDelay -int 0
# Show battery life percentage.
defaults write ~/Library/Preferences/ByHost/com.apple.controlcenter.plist BatteryShowPercentage -bool true
# Adds more icons on menu bar
defaults write com.apple.systemuiserver menuExtras -array \
"/System/Library/CoreServices/Menu Extras/Bluetooth.menu" \
"/System/Library/CoreServices/Menu Extras/AirPort.menu" \
"/System/Library/CoreServices/Menu Extras/Battery.menu" \
"/System/Library/CoreServices/Menu Extras/Clock.menu" \
"/System/Library/CoreServices/Menu Extras/User.menu" \
"/System/Library/CoreServices/Menu Extras/Volume.menu"
defaults write com.apple.systemuiserver "NSStatusItem Visible Siri" -bool false
defaults write com.apple.systemuiserver "NSStatusItem Visible com.apple.menuextra.airport" -bool true
defaults write com.apple.systemuiserver "NSStatusItem Visible com.apple.menuextra.appleuser" -bool true
defaults write com.apple.systemuiserver "NSStatusItem Visible com.apple.menuextra.battery" -bool true
defaults write com.apple.systemuiserver "NSStatusItem Visible com.apple.menuextra.bluetooth" -bool true
defaults write com.apple.systemuiserver "NSStatusItem Visible com.apple.menuextra.volume" -bool true
# Quit System Preferences
killall System\ Preferences > /dev/null 2>&1
# Set the value of the IsAnalog key to false so that the digital clock is displayed
defaults write com.apple.menuextra.clock.plist IsAnalog -bool false
# Set the date and time format to display Thu 18 Aug 23:46
defaults write com.apple.menuextra.clock.plist DateFormat -string "EEE d MMM HH:mm"
# Set the various keys based upon the new format string
# Day (Thu)
defaults write com.apple.menuextra.clock.plist ShowDayOfWeek -bool true
# Date (18 Aug)
defaults write com.apple.menuextra.clock.plist ShowDayOfMonth -bool true
# 24-hour time (23:46)
defaults delete -g AppleICUForce12HourTime > /dev/null 2>&1\n
defaults write com.apple.menuextra.clock.plist Show24Hour -bool true
# Restart the ControlCenter process for changes to take effect
killall ControlCenter
# Set dock tilesize
defaults write com.apple.dock tilesize -int 35 && killall Dock
# Set dock magnification
defaults write com.apple.dock magnification -bool true
# Set dock largesize maximum
defaults write com.apple.dock largesize -int 100
# Autohide dock
defaults write com.apple.dock autohide -bool true
# Show Hidden Files
defaults write com.apple.Finder "AppleShowAllFiles" -bool "true" && killall Finder
# Install all available software updates
sudo softwareupdate -ia