-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_brew.sh
116 lines (103 loc) · 1.77 KB
/
install_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
111
112
113
114
115
116
#!/bin/bash
echo "installing homebrew..."
which brew >/dev/null 2>&1 || /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
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. running brew upgrade..."
brew upgrade
# commands
# TODO remove unnecessary ones
formulas=(
asciinema
anyenv
bat
cpanm
ctop
dat
direnv
exa
ffmpeg
fd
gh
git
d jrnl
mas
mysql
navi
nb
neofetch
nodebrew
nnn
pandoc
procs
poppler
pstree
sampler
sd
sqlite
starship
taskell
thefuck
tldr
tmux
tmuxinator
tree
warp
wget
yarn
)
echo "brew tap"
# brew tap thirdparty
brew tap homebrew/cask-fonts
echo "brew install formula"
for formula in "${formulas[@]}"; do
brew install $formula || brew upgrade $formula
done
# gui apps
casks=(
alfred
alt-tab
appcleaner
bitwarden
cheatsheet
chromedriver
discord
docker
drawio
font-hack-nerd-font
google-backup-and-sync
iterm2
itsycal
kap
karabiner-elements
keycastr
slack
visual-studio-code
zoom
)
echo "brew casks"
for cask in "${casks[@]}"; do
brew install --cask $cask
done
stores=(
494168017 # Authy
417375580 # Better Snap Tool
1423210932 # Flow - Focus & Pomodoro Timer
1444383602 # Goodnotes5
975890633 # HotKey App
539883307 # Line
568494494 # Pocket
747648890 # Telegram
1398373917 # Upnote
497799835 # Xcode
457622435 # Yoink
405399194 # Kindle
)
echo "app stores"
for store in "${stores[@]}"; do
mas install $store
done
brew cleanup
echo "brew installed"