# Requires WindowsPowershell (powershell.exe), # because AppX does not import in Powershell (pwsh.exe) (yet) function Get-WtConfig { <# .synopsis Find Windows terminal (and preview) config files .example PS> Get-WtConfig # output: # C:\Users\\AppData\Local\Packages\Microsoft.WindowsTerminalPreview_8wekyb3d8bbwe\LocalState\settings.json .notes my directory: WindowsTerminalPreview_8wekyb3d8bbwe matches the AppX Family name PackageFamilyName : Microsoft.WindowsTerminalPreview_8wekyb3d8bbwe #> $appxWt = Get-AppxPackage *windowsterminal* $appxWt.PackageFamilyName | %{ $family = $_ "$env:localappdata\Packages\$family\LocalState\settings.json" } | gi -ea Continue }