Update pi.sh
This commit is contained in:
parent
bedcf14393
commit
7b4461c9a7
|
@ -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=(
|
||||
|
|
Loading…
Reference in New Issue