-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbrew.sh
executable file
·110 lines (99 loc) · 2.45 KB
/
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
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
104
105
106
107
108
109
110
#!/bin/sh
GREEN="$(tput setaf 2)"
NORMAL="$(tput sgr0)"
if test ! $(which brew); then
echo -e "\n\n${GREEN}Installing homebrew"
echo "==============================${NORMAL}"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
else
echo -e "\n\n${GREEN}Updating homebrew"
echo "==============================${NORMAL}"
brew update
fi
echo -e "\n\n${GREEN}Tap additional homebrew repositories of formulae"
echo "==============================${NORMAL}"
brew tap phinze/homebrew-cask
echo -e "\n\n${GREEN}Installing homebrew packages"
echo "==============================${NORMAL}"
formulas=(
# flags should pass through the the `brew list check`
bash
docker-machine-nfs
lazydocker
brew-cask
unison
eugenmayer/dockersync/unox
# cli tools
the_silver_searcher
ack
fzf
tree
fasd
toilet
wget
'--HEAD universal-ctags/universal-ctags/universal-ctags'
htop
brotli
python2
python3
# development server setup
nginx
mariadb
dnsmasq
# development tools
git
git-ftp
git-flow-avh
lazygit
hub
macvim
# 'brew install php71-mcrypt php71-imagick php71-intl php71-redis'
reattach-to-user-namespace
# tmux # is getting installed through own script
zsh
highlight
yarn
nvm
z
markdown
diff-so-fancy
ccls
cmake
clang
llvm
# docker
# docker-compose
# docker-machine
# xhyve
# docker-machine-driver-xhyve
# 'grep --with-default-names'
# neovim # is getting installed through own script
# node
# ripgrep
# git-standup
# entr
# bat
)
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
echo -e "\n\n${GREEN}Install Docker"
echo "==============================${NORMAL}"
sudo gem install docker-sync
brew cask install docker
open /Applications/Docker.app
echo -e "\n\n${GREEN}Install Fira Code Font"
echo "==============================${NORMAL}"
brew tap caskroom/fonts
brew cask install font-fira-code
echo -e "\n\n${GREEN}Install Glances"
echo "==============================${NORMAL}"
pip install --upgrade glances
pip install --upgrade psutil
echo -e "\n\n${GREEN}Running fzf install script"
echo "==============================${NORMAL}"
/usr/local/opt/fzf/install --all --no-bash --no-fish