My pwsh profile for Windows
#修改适配前务必找到正确路径,可能版本不对 #消除一个微软的pwsh启动bug,使在开始菜单启动pwsh时会进入home作为工作目录 if(($PWD).Path -eq "C:\Program Files\WindowsApps\Microsoft.PowerShell_7.5.3.0_x64__8wekyb3d8bbwe" -or ($PWD).Path -eq "C:\Windows\SystemApps\MicrosoftWindows.Client.CBS_cw5n1h2txyewy" -or ($PWD).Path -eq "C:\Windows\System32"){ Set-Location $HOME } #挂载WSL virtual network drive