-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·31 lines (21 loc) · 945 Bytes
/
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
#!/bin/bash
BR='\n\n'
MSG_OPEN='\n\n\033[40;38;5;82m➡️ '
MSG_CLOSE='\033[0m\n\n'
printf "${MSG_OPEN} Installing and upgrading Brew ${MSG_CLOSE}"
[ -s "/usr/local/bin/brew" ] || ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew analytics off
printf "${MSG_OPEN} Tapping Brew's ${MSG_CLOSE}"
for e in $(cat ~/.dotfiles/brews/taps.txt); do brew tap $e; done
brew update
printf "${MSG_OPEN} Install Brew's software base ...${MSG_CLOSE}"
for e in $(cat ~/.dotfiles/brews/brewlist.txt); do brew install $e; done
printf "${MSG_OPEN} Install Brew Cask's apps ...${MSG_CLOSE}"
for e in $(cat ~/.dotfiles/brews/casklist.txt); do brew install --cask $e; done
printf "${MSG_OPEN} Install Mac App Store's apps ...${MSG_CLOSE}"
for e in $(cat ~/.dotfiles/brews/maslist.txt); do mas install $e; done
printf "${MSG_OPEN} Cleaning ${MSG_CLOSE}"
qlmanage -r
brew cleanup
printf "${BR}✨ Done.${BR}"
exit