-
Notifications
You must be signed in to change notification settings - Fork 0
/
homebrew_install.sh
81 lines (66 loc) · 1.39 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
# インストールが上手くいかない時のエラー解決
# https://qiita.com/aves/items/1195e64fa30402b7e1f6
# http://masaru.hateblo.jp/entry/2016/02/08/223120
# chmod +x ~/dotfiles/homebrew_install.sh
#!/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
formulas=(
git
curl
openssl
zsh-completions
cask
peco
ag
hub
tig
node
python3
mysql
rbenv
ruby-build
nodenv
node-build
redis
direnv
ghq
yarn
zsh
)
"brew tap..."
brew tap sanemat/font
echo "start brew install apps..."
for formula in "${formulas[@]}"; do
brew install $formula || brew upgrade $formula
done
casks=(
google-chrome
google-japanese-ime
slack
iterm2
docker
visual-studio-code
sequel-pro-nightly
notion
postman
line
deepl
zoom
)
echo "start brew cask install apps..."
for cask in "${casks[@]}"; do
brew install --cask $cask
done
brew cleanup
cat << END
**************************************************
HOMEBREW INSTALLED!
**************************************************
END