-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.sh
71 lines (49 loc) · 1.54 KB
/
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
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
64
65
66
67
68
69
#
#
# RootProfile Setup.sh | Copyright (c) 2020 Mrmagicpie
#
#
echo "|---------------------------------|"
echo "| Welcome to Mrmagicpie's root |"
echo "| config setup. Would you like |"
echo "| to proceed with this setup? |"
echo "| |"
echo "| WARNING: |"
echo "| This will clear all your current|"
echo "| '/root/.bashrc' settings! |"
echo "| Please stash all changes before |"
echo "| you begin! |"
echo "| |"
echo "| Please say 'y' for yes, and 'n' |"
echo "| for no! |"
echo "|---------------------------------|"
read yes_no
if [ "$yes_no" == "n" ] || [ "$yes_no" == "no" ]; then
echo "|----------------|"
echo "| Exiting setup! |"
echo "|----------------|"
exit
elif [ "$yes_no" != "y" ]; then
echo "|-----------------|"
echo "| Invalid option! |"
echo "|-----------------|"
exit
fi;
echo "|------------------------|"
echo "| Continuing with setup. |"
echo "|------------------------|"
sleep 1
cd /root
if [ -f /root/.bashrc ]; then
mv .bashrc default-bashrc.ubuntu
fi;
git clone https://github.com/Mrmagicpie/RootProfile root-config
mv root-config/.bashrc ./.bashrc
echo "|---------------------------------------------|"
echo "| Finished the Mrmagicpie Root Profile setup! |"
echo "| |"
echo "| Report issues on our GitHub: |"
echo "| https://github.com/Mrmagicpie/RootProfile |"
echo "|---------------------------------------------|"
sleep 3
# I really like bash scripts, don't judge me