mirror of
https://github.com/wnlen/clash-for-linux.git
synced 2026-03-21 22:06:45 +08:00
Update install.sh
This commit is contained in:
11
install.sh
11
install.sh
@ -591,14 +591,9 @@ fi
|
|||||||
# =========================
|
# =========================
|
||||||
section "下一步开启代理(可选)"
|
section "下一步开启代理(可选)"
|
||||||
|
|
||||||
PROFILED_FILE="/etc/profile.d/clash-for-linux.sh"
|
log " $(cmd "clashctl on") # 开启当前终端代理"
|
||||||
|
log " $(cmd "clashctl off") # 关闭当前终端代理"
|
||||||
if [ -f "$PROFILED_FILE" ]; then
|
log " $(cmd "clashctl status") # 查看状态"
|
||||||
log " $(cmd "source $PROFILED_FILE")"
|
|
||||||
log " $(cmd "proxy_on")"
|
|
||||||
else
|
|
||||||
log " (未安装 Shell 代理快捷命令,跳过)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# =========================
|
# =========================
|
||||||
# 启动后快速诊断
|
# 启动后快速诊断
|
||||||
|
|||||||
Reference in New Issue
Block a user