-
Notifications
You must be signed in to change notification settings - Fork 1
/
brew.sh
executable file
路200 lines (160 loc) 路 7.41 KB
/
brew.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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
#!/usr/bin/env bash
# brew.sh
# Install command-line tools using Homebrew.
#
# IMPORTANT:
# Before run this script you need to install Xcode.
# agree to xcode license and install command line tools
sudo xcodebuild -license
sudo xcode-select --install
# Install brew (if not already installed)
if ! command -v brew >/dev/null 2>&1; then
echo "Installing brew..."
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi;
# Check if the installation was ok
brew doctor | grep 'Your system is ready to brew' &> /dev/null
if [ $? != 0 ]; then
echo "An error ocurred and brew cannot be installed... exiting now"
exit
fi
# Update homebrew and any installed formulae
brew update
brew upgrade
###############################################################################
# Tools #
###############################################################################
brew install ack # search for things within a repo
brew install the_silver_searcher # alternative to ack maybe faster
brew install wget # similar to curl
brew install speedtest_cli # test internet bandwidth using speedtest.net
brew install ssh-copy-id # install your public key in a remote machine's authorized_keys
brew install rename # rename files easy
brew install htop # better top replacement
brew install tree # display full directory hierarchy
brew install pstree # display running processes as a tree
brew install pv # show progress bar in pipelines
brew install iftop # show network usage (similar to top)
brew install unrar # decompress rar files
brew install dockutil # manage dock items from the terminal
brew install gpg # free implementation of the OpenPGP
brew install thefuck # correct previous console command
brew install sshrc # sources the .sshrc file after logging in remotely
###############################################################################
# Cask #
###############################################################################
# Install cask so we can install apps like ninjas
# [ No needed anymore - Dec 2015]
# brew tap caskroom/cask
# Allow completion on brew cask
brew install homebrew/completions/brew-cask-completion
###############################################################################
# Quicklook #
###############################################################################
brew cask install qlmarkdown # preview Markdown files
brew cask install qlstephen # preview plain text files without a extension
brew cask install qlcolorcode # preview source code with syntax highlight
brew cask install quicklook-json # preview JSON files
brew cask install quicklook-csv # preview CSV files
brew cask install qlprettypatch # preview diffs
brew cask install betterzipql # preview archives
# Enable text selection in QuickLook views.
defaults write com.apple.finder QLEnableTextSelection -bool TRUE
###############################################################################
# Apps #
###############################################################################
# Install all our favourite apps without even a single click 馃槷
# Social
brew cask install adium
brew cask install skype
brew cask install slack
brew cask install whatsapp
# Office
brew cask install macdown
# Utilities
brew cask install flux
brew cask install the-unarchiver
# General
brew cask install google-backup-and-sync
brew cask install google-chrome
brew cask install firefox
brew cask install spotify
brew cask install vlc
brew cask install transmission
# Graphics
brew cask install icons8
brew cask install image2icon
brew cask install imagealpha
brew cask install imageoptim
brew cask install licecap
###############################################################################
# Development #
###############################################################################
# Install python (macOS version is outdated) and python3
# Both are compatibles and this way you can test the code in both
brew install python python3
# update pip and setuptools
pip install --upgrade pip setuptools
pip3 install --upgrade pip setuptools wheel
pip3 install virtualenv
pip3 install jupyter notebook
pip3 install numpy
pip3 install pandas
brew install freetype
pip3 install matplotlib
pip3 install scipy
pip3 install sklearn
pip3 install requests
brew install node
brew install mongodb
brew install mysql
sudo brew cask install java
brew install maven
brew install jenv
# jenv add /Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/
# jenv global oracle64-1.8.0.112
brew install sonar
brew install sonar-scanner
brew install scala
brew cask install atom
brew cask install postman
brew cask install github-desktop
brew cask install intellij-idea
brew cask install pycharm
brew cask install android-studio
brew cask install textwrangler
brew cask install netbeans-java-ee
brew cask install mysqlworkbench
brew cask install scenebuilder
brew cask install day-o
sudo gem install cocoapods
sudo gem install jekyll
sudo gem install jekyll-sitemap
sudo gem install jekyll-paginate
###############################################################################
# Mac App Store Apps #
###############################################################################
# Command line interface for the Mac App Store
# This command will not allow you to install an app for the first time: it must
# already be in the Purchased tab of the App Store.
brew install mas
mas install 441258766 # install Magnet
mas install 595191960 # install CopyClip
mas install 1114591412 # install Memory Clean 2
mas install 1035237815 # install Commander One Pro
mas install 409201541 # install Pages
mas install 409203825 # install Numbers
mas install 409183694 # install Keynote
mas install 568494494 # install Pocket
mas install 641027709 # install Color Picker
###############################################################################
# Other #
###############################################################################
# add spotify and atom icons to the dock
defaults write com.apple.dock persistent-apps -array-add '<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>/Applications/Atom.app</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>'
defaults write com.apple.dock persistent-apps -array-add '<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>/Applications/Spotify.app</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>'
defaults write com.apple.dock persistent-apps -array-add '<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>/Applications/IntelliJ%20IDEA.app</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>'
# Cleanup
brew cleanup
# TODO
echo eclipse, office, parallels, pixelmator, popcorntime, promotee