-
Notifications
You must be signed in to change notification settings - Fork 15
/
setup.sh
executable file
·37 lines (25 loc) · 893 Bytes
/
setup.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
#!/usr/bin/env bash
if [ $# -ne 3 ]
then
echo 'Usage: ./setup "computer_name" "User Name" "[email protected]"'
exit 1
fi
computer_name="$1"
user_name="$2"
user_email="$3"
echo ">> Symlinking"
./symlink.sh # setup symlinks
echo; echo ">> Entering /osx"
cd osx/
echo; echo ">> Installing apps"
./install-apps.sh # install apps, command line utilities and fonts
echo; echo ">> Downloading apps"
./download-apps.sh # download apps to ~/Downloads
echo; echo ">> Configuring macOS"
./configure-osx.sh "$computer_name" # configure a Mac machine
echo; echo ">> Leaving /osx"
cd -
./setup_tools.sh
./setup-git-user.sh "$user_name" "$user_email" # creates the file with git user and email
./setup-ssh-key.sh "$computer_name" "$user_email" # creates ssh keys named after computer name using user email
./setup-ssh-config.sh "$computer_name" # creates ssh config using computer name