Skip to content

Instantly share code, notes, and snippets.

@Paxxs
Last active December 20, 2023 03:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Paxxs/cc754f2f342d629613ac7810fb9055b0 to your computer and use it in GitHub Desktop.
Save Paxxs/cc754f2f342d629613ac7810fb9055b0 to your computer and use it in GitHub Desktop.
WSL2 fish shell 自动设置http代理

WSL2 fish shell 自动设置 http 代理

WSL2 使用来自宿主机的(clash)代理

使用

# echo "set -x ALL_PROXY http://(grep nameserver /etc/resolv.conf | awk '{ print \$2 }'):7890" > /etc/fish/conf.d/wsl2_proxy.fish
set -x ALL_PROXY http://(grep nameserver /etc/resolv.conf | awk '{ print $2 }'):7890
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment