-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
executable file
·72 lines (63 loc) · 1.66 KB
/
run.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
70
71
72
#!/bin/bash
user=$USER
bold=$(tput bold)
normal=$(tput sgr0)
function print_option_exception {
echo -e "\n${bold}Wrong option!${normal}\n"
}
# CLI
function open_main_menu {
clear
option=""
until [ "$option" = "0" ]; do
echo -e "\nHello $user! It's fast Fedora setup."
echo -e "\n${bold}Main menu${normal}"
echo -e "
Installation options:
[1] Install 1Password
[2] Install Zsh with Oh My Zsh
[3] Install Visual Studio Code
[4] Install Docker
[5] Install Rust
[6] Install Go
[7] Install Node Version Manager
[8] Install additional fonts
[9] Install Discord
Configuration options:
[10] Enable fractional scaling
[11] Set up Git user name and email
[0] Exit
"
read -p "Select option: " option
case $option in
0)
exit;;
1)
source ./scripts/1password.sh;;
2)
source ./scripts/zsh.sh;;
3)
source ./scripts/code.sh;;
4)
source ./scripts/docker.sh;;
5)
source ./scripts/rust.sh;;
6)
source ./scripts/go.sh;;
7)
source ./scripts/nvm.sh;;
8)
source ./scripts/fonts.sh;;
9)
source ./scripts/discord.sh;;
10)
source ./scripts/scaling.sh;;
11)
source ./scripts/git.sh;;
*)
print_option_exception;;
esac
done
}
# Initialization
open_main_menu