-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguratorationator.sh
63 lines (48 loc) · 1.07 KB
/
configuratorationator.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
#!/bin/bash
# Start with a good old update
sudo apt update
# Github user configuration
read -p "Setup git? " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
git_user="cartermak"
git_email="cartermak3@gmail.com"
git config --global user.name $git_user
git config --global user.email $git_email
fi
# SSH key
read -p "Create SSH key? " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
# Set up an SSH key pair if one doesn't exist
if [ ! -d "~/.ssh" ]; then
mkdir ~/.ssh
fi
if [ ! -f "~/.ssh/id_rsa" ]; then
ssh-keygen -t rsa -b 4096 -N "" -C $git_email -f ~/.ssh/id_rsa
fi
fi
# Install NodeJS
read -p "Install NodeJS? " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt install -y nodejs
fi
# Install snap
read -p "Install snap? " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
sudo apt install -y snapd
# Install VS Code
read -p "Install VS Code? " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
sudo snap install --classic code
fi
fi