Skip to content

Instantly share code, notes, and snippets.

View Loongphy's full-sized avatar
🚀
Landing Mars

Loongphy Wei Loongphy

🚀
Landing Mars
View GitHub Profile
@Loongphy
Loongphy / config.fish
Created June 5, 2024 05:59
fish script
# ~/.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