-
Notifications
You must be signed in to change notification settings - Fork 0
/
.brew.sh
executable file
·29 lines (20 loc) · 879 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
#!/usr/bin/env bash
# for regular updates on existing mac
# `bash ~/.config/setup.sh NOOS`
YELLOW='\033[1;33m' # switching section
GRAY='\033[1;30m' # info
PURPLE='\033[1;35m' # making change
NC='\033[0m' # No Color
echo -e "\n\n\n${YELLOW}---- Homebrew updates${NC}"
echo -e "${PURPLE}---- clean up to match brewfile ${NC}"
brew bundle --force cleanup --file="~/.brewfile"
echo -e "${PURPLE}---- installing from brewfile${NC}"
brew bundle install -v --file="~/.brewfile"
echo -e "${PURPLE}---- cask upgrade (via cu) ${NC}"
brew cu --all --cleanup --yes
echo -e "${PURPLE}\n\n\n\n---- updating formulae${NC}"
echo -e "${GRAY}\nupdate the local downloaded git repo with latest code${NC}"
brew update
echo -e "${PURPLE}---- upgrading packages${NC}"
echo -e "${GRAY}\ndoes the actual upgrade of packages to update formulate from above step${NC}"
brew upgrade