-
Notifications
You must be signed in to change notification settings - Fork 0
/
Brewfile
executable file
·89 lines (72 loc) · 1.37 KB
/
Brewfile
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
#!/bin/sh
# thanks to https://github.com/tacahilo/.dotfiles/blob/0c75dc897a307c976bc75e09bc40686e6f0533d1/Brewfile
# :)
PATH=/usr/local/bin:$PATH
TAPS=(
# homebrew/binary
# homebrew/dupes
# homebrew/versions
# homebrew/science
# caskroom/versions
)
FORMULAS=(
"git --with-brewed-curl --with-brewed-openssl --with-gettext --with-pcre"
#caskroom/cask/brew-cask
ssh-copy-id
#zsh
diff-so-fancy
# thefuck
git-extras
)
CASKS=(
# dropbox
# google-drive
# firefox
# google-chrome
# iterm2
# skitch
# skype
# virtualbox
# vagrant
qlcolorcode
qlmarkdown
quicklook-json
qlstephen
# controlplane
# alfred
# slate
# caffeine
# flux
# appcleaner
# spotify
# atom
# sublime-text3
)
function setup() {
[ -x "/usr/local/bin/brew" ] || {
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
}
}
function install_brewfiles() {
for tap in "${TAPS[@]}"; do
brew tap $tap
done
for formula in "${FORMULAS[@]}"; do
brew install $formula
done
}
function install_caskfiles() {
for cask in "${CASKS[@]}"; do
brew cask install $cask
done
}
function main() {
setup
brew update
brew upgrade
install_brewfiles
install_caskfiles
brew cleanup
brew doctor
}
main