From 7b4461c9a78793439e0f472496d2aa102e6053e7 Mon Sep 17 00:00:00 2001 From: wukongdaily <2666180@gmail.com> Date: Sun, 1 Dec 2024 18:34:56 +0800 Subject: [PATCH] Update pi.sh --- zero3/pi.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/zero3/pi.sh b/zero3/pi.sh index 7275269..f6631fb 100644 --- a/zero3/pi.sh +++ b/zero3/pi.sh @@ -10,9 +10,6 @@ light_magenta() { echo -e "\033[95m\033[01m[NOTICE] $1\033[0m"; } highlight() { echo -e "\033[32m\033[01m$1\033[0m"; } cyan() { echo -e "\033[38;2;0;255;255m$1\033[0m"; } -# 设置全局快捷键p -cp -f "$0" /usr/local/bin/p -chmod +x /usr/local/bin/p # 检查是否以 root 用户身份运行 if [ "$(id -u)" -ne 0 ]; then @@ -23,6 +20,11 @@ if [ "$(id -u)" -ne 0 ]; then exit $? fi +# 设置全局快捷键p +cp -f "$0" /usr/local/bin/p +chmod +x /usr/local/bin/p + + declare -a menu_options declare -A commands menu_options=(