cdfbcec6b723df69dce9ce4b8aeecf662bc98d5a
- 菜单精简为左右两列:1 启动 / 2 停止 / 3 打开面板,移除冗余项 - 合并 import 到 link,新增 doctor 网络诊断,统一输出风格 - /ui 自动跳转 zashboard,clash open 直接打开正确面板地址 - 按 fake-IP 网关(198.18.0.1)识别并清理残留 TUN,修复停止后国内直连绕路/高延迟 - stop 未运行时也清理残留,start 启动前自动清理;系统代理/DNS 遍历所有网络服务
Clash — macOS 代理管理脚本
一份 YAML 配置同时在 OpenWRT 和 macOS 上使用,启动时自动适配 macOS。
使用
| 命令 | 说明 |
|---|---|
clash |
交互菜单 |
clash start |
启动 |
clash stop |
停止 |
clash restart |
重启 |
clash reload |
热重载 |
clash status |
状态 |
clash link |
源文件路径 |
clash cleanup |
网络修复 |
目录
Clash/
├── clash # 管理脚本
└── install.sh # 部署脚本
~/Mihomo/ ← 放 YAML 配置文件
新电脑部署
git clone git@github.com:lukeopen/Clash.git
cd Clash && zsh install.sh
cp /path/to/config.yaml ~/Mihomo/
clash start
依赖
- Homebrew +
brew install mihomo
Languages
PowerShell
58.4%
Shell
41.6%