增加全局快捷键t

This commit is contained in:
悟空的日常镜像仓库 2024-12-01 21:51:47 +08:00
parent cf3c2fa312
commit a8f4e76e9b

View File

@ -20,6 +20,9 @@ declare -A commands_essentials
declare -a tv_model_options
declare -A tv_model_commands
# 设置全局命令 p
cp -f "$0" /usr/local/bin/t
chmod +x /usr/local/bin/t
get_docker_version() {
VERSION=$(grep -E '^VERSION=' /etc/environment | cut -d '=' -f2)
@ -1040,6 +1043,7 @@ show_menu() {
echo "$(get_tvbox_model_name)"
echo "$(get_tvbox_timezone)"
echo "**********************************************************************"
YELLOW "再次运行 输入 t 即可"
echo "请选择操作:"
for i in "${!menu_options[@]}"; do
echo -e "${BLUE}$((i + 1)). ${menu_options[i]}${NC}"