terminal.psm1
function Install-TerminalScheme { <# .Parameter Preview If specified, the color scheme will be installed to the Microsoft Terminal Preview directory instead of the production release. #> [CmdletBinding()] param ( [Parameter(Mandatory = $true, ParameterSetName = 'SpecificScheme')] [string[]] $Name, [Parameter(Mandatory = $true, ParameterSetName = 'AllSchemes')] [switch] $All, [switch] $Preview ) if ($PSCmdlet.ParameterSetName -eq 'SpecificScheme') { } } function Find-TerminalSettings { <# Returns the path to the settings file for Windows Terminal or Windows Terminal Preview #> [CmdletBinding()] param ( [Parameter(Mandatory = $false)] [switch] $Preview ) $Regex = $Preview ? 'Microsoft\.WindowsTerminalPreview_' : 'Microsoft\.WindowsTerminal_' $Folder = (Get-ChildItem -Path $env:LOCALAPPDATA\Packages | Where-Object Name -match $Regex)[0] } |