forked from The-White-Lion/single-click-deployment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu.sh
70 lines (64 loc) · 1.45 KB
/
menu.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
#!/bin/bash
function show_menu() {
green "==============================="
green " Linux 常用工具 一键安装脚本 "
green "==============================="
green " 1. 安装开发环境 "
green " 2. 安装 nerd font (Jetbrains Mono, CascadiaCode) "
green " 3. 安装 z.lua "
green " 4. 安装 vim "
green " 5. 安装 ranger "
green " 6. 安装 docker "
green " 7. 安装 oh-my-zsh "
green " 0. 退出 "
echo
}
function list_soft() {
read -p " 请输入数字:" input_number
case "${input_number}" in
1)
blue "安装开发环境"
install_golang
install_lua
;;
2)
blue "安装 nerd font"
install_font
;;
3)
blue "安装 z.lua"
install_z_lua
;;
4)
blue "安装 vim"
install_vim
;;
5)
blue "安装 ranger"
install_ranger
;;
6)
blue "安装 docker"
install_docker
;;
7)
blue "安装 oh-my-zsh"
install_omz
;;
0)
source "${PWD}/hook/postinstall.sh"
exit 0
;;
*)
red "输入有误"
;;
esac
}
function main() {
while true ; do
show_menu
list_soft
done
}
source "${PWD}/hook/preinstall.sh"
main