-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhomebrew_install.sh
executable file
·103 lines (90 loc) · 1.45 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#!/bin/bash
echo "install homebrew..."
which brew >/dev/null 2>&1 || /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
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=(
anyenv
apr
apr-util
autoconf
bash-completion
berkeley-db
cask
cmake
cscope
gcc
gdbm
gettext
git
gmp
go
icu4c
isl
libevent
libmpc
libssh2
libyaml
lua
lz4
mono
mpdecimal
mpfr
mysql
ncurses
node
openssl@1.1
pcre2
perl
pkg-config
protobuf
pwgen
pyenv
python@3.8
python@3.9
readline
ruby
rust
sqlite
subversion
tcl-tk
tmux
tree
utf8proc
vim
xz
zsh-autosuggestions
zsh-completions
zsh-git-prompt
zsh-syntax-highlighting
alfred
ripgrep
)
echo "start brew install apps..."
for formula in "${formulas[@]}"; do
brew install $formula || brew upgrade $formula
done
casks=(
slack
alfred
iterm2
virtualbox
vagrant
vagrant-manager
dash
)
echo "start brew cask install apps..."
for cask in "${cask[@]}"; do
brew install -cask $cask
done
brew cleanup
brew cask cleanup
cat << END
================================
homebrew installed bye.
================================
END