Skip to content

Instantly share code, notes, and snippets.

View FaiChou's full-sized avatar
:octocat:
Focusing

周辉 FaiChou

:octocat:
Focusing
View GitHub Profile
@FaiChou
FaiChou / setproxy.sh
Created November 24, 2025 05:59
macOS set system proxy
#!/bin/bash
# setproxy.sh - 设置 macOS 当前 WiFi 的代理
# 用法:
# ./setproxy.sh local # 设置 127.0.0.1:7890
# ./setproxy.sh snail # 设置 192.168.1.2:7890
# ./setproxy.sh close # 关闭代理
set -e
# 根据参数设置代理地址