From 618ed87b208658deea53a17401ac9b8f05519d50 Mon Sep 17 00:00:00 2001 From: juewuy Date: Sat, 13 Dec 2025 17:52:40 +0800 Subject: [PATCH] =?UTF-8?q?~=E5=8D=B8=E8=BD=BD=E5=8A=9F=E8=83=BD=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=AF=B9=E8=87=AA=E5=AE=9A=E4=B9=89=E5=88=AB=E5=90=8D?= =?UTF-8?q?=E7=9A=84=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/menu.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/menu.sh b/scripts/menu.sh index c82b79f..cf9cdc2 100644 --- a/scripts/menu.sh +++ b/scripts/menu.sh @@ -1992,10 +1992,14 @@ uninstall() { #移除其他内容 [ -w ~/.bashrc ] && profile=~/.bashrc [ -w /etc/profile ] && profile=/etc/profile - sed -i '/alias clash=*/'d $profile + sed -i "/alias $my_alias=*/"d $profile sed -i '/alias crash=*/'d $profile sed -i '/export CRASHDIR=*/'d $profile sed -i '/export crashdir=*/'d $profile + [ -w ~/.zshrc ] && { + sed -i "/alias $my_alias=*/"d ~/.zshrc + sed -i '/export CRASHDIR=*/'d ~/.zshrc + } sed -i '/all_proxy/'d $profile sed -i '/ALL_PROXY/'d $profile sed -i "/启用外网访问SSH服务/d" /etc/firewall.user 2>/dev/null