feat(pwsh): Windows Migration and optimize powershell scripts

This commit is contained in:
js0ny 2024-12-01 07:02:12 +00:00
parent 567c8d1b3b
commit 8306264bdb
12 changed files with 141 additions and 133 deletions

19
platforms/win/wslconfig Normal file
View file

@ -0,0 +1,19 @@
# $DOTFILES\platforms\win\wslconfig
# Date: 2024-12-01
# Author: contact@js0ny.net
# Config Files (mainly for networking) for WSL2 (Windows Subsystem for Linux 2)
# 适用于 Windows 的 Linux 子系统 2 的配置文件(主要用于网络)
# Location: ~/.wslconfig
# Linking: (PowerShell)
# New-Item -ItemType SymbolicLink -Path ~\.wslconfig -Target ~\.dotfiles\platforms\win\wslconfig
[wsl2]
# networkingMode=mirrored
# dnsTunneling=true
# firewall=true
# autoProxy=true
[experimental]
# requires dnsTunneling but are also OPTIONAL
bestEffortDnsParsing=true
hostAddressLoopback=true