-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathinstall.sh
More file actions
34 lines (27 loc) · 883 Bytes
/
install.sh
File metadata and controls
34 lines (27 loc) · 883 Bytes
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
#!/usr/bin/env bash
# Set the Application folder to the User
# export HOMEBREW_CASK_OPTS="--appdir=~/Applications"
# checks if apple ID was used as argument, if not ask for it
if [ $# -eq 0 ]
then
echo " Enter your AppleID followed by [ENTER]:"
read APPLEID
else
APPLEID=$1
fi
# install homebrew
if [[ ! "$(type -P brew)" ]]; then
echo "🌶 Installing homebrew"
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)";
fi
# installs bundle Bundle
brew tap Homebrew/bundle
brew install mas
echo "🍎 Signing in with your appleID"
mas signin $APPLEID
echo '❗ The next time you are asked for your password, enter your system password'
echo '❗ NOT the apple store password:'
# restore installed apps
brew bundle
echo '✅ Everything should be installed by now'
echo 'enjoy your freshly installed Mac '