This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.config/fish/conf.d/config.fish | |
# WSL proxy | |
function proxy | |
# set ip (grep nameserver /etc/resolv.conf | cut -d " " -f 2) # if network=NAT in windows .wslconfig(it's the default behaviour) | |
set ip 127.0.0.1 # if network=MIRRORED in windows .wslconfig | |
export all_proxy=http://$ip:7890 | |
git config --global http.proxy http://$ip:7890 | |
git config --global https.proxy http://$ip:7890 | |
end |