forked from nwaywood/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
brew.sh
43 lines (39 loc) · 849 Bytes
/
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
#!/bin/sh
if test ! $(which brew); then
echo "Installing homebrew"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
echo -e "\n\nInstalling homebrew packages..."
echo "=============================="
formulas=(
# flags should pass through the the `brew list check`
'macvim --with-override-system-vim'
ack
diff-so-fancy
dnsmasq
fzf
git
'grep --with-default-names'
highlight
hub
markdown
neovim/neovim/neovim
node
nginx
reattach-to-user-namespace
the_silver_searcher
tmux
tree
wget
z
zsh
ripgrep
git-standup
)
for formula in "${formulas[@]}"; do
if brew list "$formula" > /dev/null 2>&1; then
echo "$formula already installed... skipping."
else
brew install $formula
fi
done