-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbrew_installer.sh
executable file
·42 lines (37 loc) · 1.01 KB
/
brew_installer.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
#!/bin/bash
# vars
m1_dir=/opt/homebrew/bin
# funcs
printer () {
string=''$message''
for ((i=0; i<=${#string}; i++)); do
printf '%s' "${string:$i:1}"
sleep 0.$(( (RANDOM % 1) + 1 ))
done
printf -- '\n';
}
clear
printf -- 'ok, lets get brew installed \n';
message='eyes open, it will ask questions'
printer
echo
# the brewables
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
# need a check here
if [ -d "$m1_dir" ]
then
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> "$HOME"/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
else
printf -- 'ok looks like we are not using M1 \n';
fi
# brew install google-chrome
brew install google-drive
brew install slack
brew install zoom
brew install 1password
brew install notion
brew install desktoppr
# brew install dockutil ## Installs v2.x which uses Python 2; broken in MacOS 12.3+
## Temporary fix
brew install --cask hpedrorodrigues/tools/dockutil