-
Notifications
You must be signed in to change notification settings - Fork 0
/
homebrew_install.sh
86 lines (72 loc) · 1.4 KB
/
homebrew_install.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
#!/bin/bash
echo "installing homebrew..."
which brew >/dev/null 2>&1 || /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo "run brew doctor..."
which brew >/dev/null 2>&1 && brew doctor
echo "run brew update..."
which brew >/dev/null 2>&1 && brew update
echo "ok. run brew upgrade..."
brew upgrade --all
formulas=(
git
wget
curl
tree
openssl
z
colordiff
"--without-etcdir zsh"
zsh-completions
"--with-cocoa --srgb emacs"
cask
ansible
peco
hub
tig
node
python3
lua
"vim --with-lua"
mysql
postgresql
sqlite
"php55 --homebrew-apxs"
httpd22
ricty
sqlite
composer
markdown
ctags
ssh-copy-id
phantomjs
mecab
diff-so-fancy
thefuck
)
"brew tap..."
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-php
brew tap homebrew/apache
brew tap sanemat/font
echo "start brew install apps..."
for formula in "${formulas[@]}"; do
brew install $formula || brew upgrade $formula
done
casks=(
google-chrome
slack
alfred
iterm2
)
echo "start brew cask install apps..."
for cask in "${casks[@]}"; do
brew cask install $cask
done
brew cleanup
brew cask cleanup
cat << END
**************************************************
HOMEBREW INSTALLED! bye.
**************************************************
END