创建文件 edit.ps1
,在 C:\Users\qingh\Documents\NetSarang Computer\7\Xshell\Sessions
下执行,把里面的15修改为你想要的字号大小
Get-ChildItem -Path . -Filter *.xsh -Recurse | ForEach-Object { $content = Get-Content $_.FullName $newContent = $content -replace 'FontSize=\d+', 'FontSize=15' -replace 'AsianFontSize=\d+', 'AsianFontSize=15' Set-Content -Path $_.FullName -Value $newContent }
发表回复