-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap
executable file
·189 lines (153 loc) · 5.34 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
#!/usr/bin/env bash
# Symbolic link with .dotfiles to ~/$HOME directory
find "$(pwd)" -name ".*" -type f -maxdepth 1 | xargs -I '{}' ln -s '{}' ~
# Ignore system/zcustom.sh file. http://stackoverflow.com/a/653495/462015
git update-index --skip-worktree system/zcustom.sh
# Install formulas
brew install asdf
brew install autossh
brew install bash-completion@2
brew install bat
brew install diff-so-fancy
brew install docker docker-compose colima
brew install elixir
brew install fzf
brew install grip
brew install hr
brew install htop-osx
brew install httpie
brew install jq
brew install kubectl
brew install leiningen
brew install mobile-shell
brew install nmap
brew install pstree
brew install ripgrep
brew install shellcheck
brew install tmux
brew install tree
brew install webkit2png
brew install wget
brew install wifi-password
brew install youtube-dl
# Install my own formulas
brew tap arturoherrero/formulae
brew install gvar
# Brew GUI Mac applications
brew install --cask adobe-digital-editions
brew install --cask appcleaner
brew install --cask authy
brew install --cask bettertouchtool
brew install --cask bitbar
brew install --cask blackhole-2ch
brew install --cask calibre
brew install --cask cloud
brew install --cask coconutbattery
brew install --cask cyberduck
brew install --cask db-browser-for-sqlite
brew install --cask deepl
brew install --cask devdocs
brew install --cask disk-inventory-x
brew install --cask docker
brew install --cask dropbox
brew install --cask epic-games
brew install --cask firefox
brew install --cask fromscratch
brew install --cask gitkraken
brew install --cask google-chrome
brew install --cask google-drive
brew install --cask hiddenbar
brew install --cask imageoptim
brew install --cask intellij-idea-ce
brew install --cask jdownloader
brew install --cask kap
brew install --cask karabiner-elements
brew install --cask keepingyouawake
brew install --cask kodi
brew install --cask macdown
brew install --cask minikube
brew install --cask monitorcontrol
brew install --cask nordvpn
brew install --cask openemu
brew install --cask pop
brew install --cask postman
brew install --cask psequel
brew install --cask raycast
brew install --cask robomongo
brew install --cask sequel-pro
brew install --cask slack
brew install --cask sourcetree
brew install --cask spotifree
brew install --cask spotify
brew install --cask steam
brew install --cask telegram-desktop
brew install --cask the-unarchiver
brew install --cask tomighty
brew install --cask tor-browser
brew install --cask vagrant
brew install --cask vagrant-manager
brew install --cask virtualbox
brew install --cask visual-studio-code
brew install --cask vlc
brew install --cask webtorrent
brew install --cask whatsapp
# Vim configuration
mkdir ~/.vim/undodir
# iTerm2 with Shell Integration
brew install --cask iterm2
curl -L https://iterm2.com/shell_integration/install_shell_integration.sh | bash
# Install App Store applications
brew install mas
mas install 1274495053 # Microsoft To Do
# Update Bash version
brew install bash
sudo bash -c "echo $(brew --prefix)/bin/bash >> /etc/shells"
chsh -s "$(brew --prefix)"/bin/bash
# Set the computer name
COMPUTER_NAME="machine"
sudo scutil --set HostName $COMPUTER_NAME
sudo scutil --set LocalHostName $COMPUTER_NAME
sudo scutil --set ComputerName $COMPUTER_NAME
# Prevent Time Machine from prompting to use new hard drives as backup volume.
defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true
# Disable creation of metadata files (.DS_Store) on network volumes.
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
# Disable creation of metadata files (.DS_Store) on USB volumes.
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
# Save screenshots in jpg format.
defaults write com.apple.screencapture type -string "jpg"
# Disable the warning when changing a file extension.
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
# 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 on the menu bar.
defaults -currentHost write com.apple.controlcenter.plist BatteryShowPercentage -bool true
# Show bluetooth icon on the menu bar.
defaults -currentHost write com.apple.controlcenter.plist Bluetooth -int 18
# Don’t automatically rearrange Spaces based on most recent use
defaults write com.apple.dock mru-spaces -bool false
# Add Documents folder to the Documents side of the Dock.
defaults write com.apple.dock persistent-others -array-add "\
<dict>\
<key>tile-data</key>\
<dict>\
<key>file-data</key>\
<dict>\
<key>_CFURLString</key> <string>file:///Users/arturo/Documents/</string>\
<key>_CFURLStringType</key> <integer>15</integer>\
</dict>\
<key>file-type</key> <integer>2</integer>\
<key>showas</key> <integer>1</integer>\
</dict>\
<key>tile-type</key> <string>directory-tile</string>\
</dict>"
# Remove items located on the Applications side of the Dock.
defaults write com.apple.dock persistent-apps -array
# Automatically hide the dock.
defaults write com.apple.dock autohide -bool true
# Don't show recent items.
defaults write com.apple.dock show-recents -bool false
killall Dock
# Install all available software updates
sudo softwareupdate -ia