编辑fish配置文件:~/.config/fish/config.fish

1
2
3
4
5
6
7
function pxy
set -xg ALL_PROXY socks5://192.168.31.50:30170
end

function npxy
set -e ALL_PROXY
end