更合理的网关路由获取,部分插件不预装

This commit is contained in:
Super User
2025-09-16 17:44:26 +08:00
parent ccc2400019
commit b2a809833e
2 changed files with 3 additions and 6 deletions

View File

@@ -2,7 +2,7 @@
alias open="/mnt/c/Windows/explorer.exe"
alias notepad="/mnt/c/Windows/notepad.exe"
export NET_GATE="$(/bin/ip r | head -n1 | cut -d' ' -f3)"
export NET_GATE="$(ip -c=never r | head -n1 | cut -d' ' -f3)"
# WSLG
if [[ -z $DISPLAY ]]; then