-
Notifications
You must be signed in to change notification settings - Fork 0
/
pre_bootstrap.sh
executable file
·53 lines (43 loc) · 1.03 KB
/
pre_bootstrap.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
#!/bin/sh
echo "Type the email that you would like to associate with the SSH key, then press [ENTER]:"
read SSH_EMAIL
echo "About to generate SSH keys"
sleep 2
if [ -f "$HOME/.ssh/id_rsa" ]; then
echo "Keys already exist"
else
yes | ssh-keygen -f $HOME/.ssh/id_rsa -t rsa -C "${SSH_EMAIL}" -N ''
chmod 700 $HOME/.ssh
touch $HOME/.ssh/authorized_keys
chmod 600 $HOME/.ssh/authorized_keys
echo "Done generating keys"
fi
echo "About to set up scripts directory."
sleep 2
./scripts_setup.sh
echo "About to set up vim."
sleep 2
./vim_setup.sh
echo "About to change Mac settings"
sleep 2
./mac_settings.sh
echo "About to install and set up python"
sleep 2
./python_setup.sh
./python_install.sh
#echo "About to install and set up go"
#sleep 2
#./go_setup.sh
#./go_install.sh
echo "About to run brew installation script"
sleep 2
./brew_install.sh
echo "About to set shell to bash"
if [ -f "/usr/local/bin/bash" ]; then
BASH="/usr/local/bin/bash"
else
BASH="/bin/bash"
fi
echo "Found ${BASH}"
sleep 2
chsh -s ${BASH}