external help file | Module Name | online version | schema |
---|---|---|---|
WTToolBox-help.xml |
WTToolBox |
2.0.0 |
Create a new Windows Terminal profile.
New-WTProfile [-Name] <String> -CommandLine <String> -TabTitle <String> [-ColorScheme <String>] [-CursorShape <String>] [-Hidden] [-StartingDirectory <String>] [-UseAcrylic] [-AcrylicOpacity <Double>] [-BackgroundImage <String>] [-BackgroundImageOpacity <Double>] [-BackgroundImageStretchMode <String>] [-BackgroundImageAlignment <String>] [-WhatIf] [-Confirm] [<CommonParameters>]
New-WTProfile makes it easier to create a custom Windows Terminal profile from a PowerShell prompt. Not every single setting is available, but enough to accomplish the bulk of the setting. Most of the parameters accept pipeline input so you can pipe an object with matching parameter names to New-WTProfile.
The new profile will be inserted at the top of the list in the settings.json file.
PS C:\> New-WTProfile -Name CMD -CommandLine cmd.exe -TabTitle Windows -CursorShape vintage -StartingDirectory "%WINDIR%"
Create a new profile called CMD that will run cmd.exe starting in the Windows directory.
If you enable acrylic settings you can specify a value.
Type: Double
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 1.0
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specify the path to a background image.
Type: String
Parameter Sets: (All)
Aliases: bg
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specify the background image alignment.
Type: String
Parameter Sets: (All)
Aliases: bgalign
Accepted values: bottom, bottomLeft, bottomRight, center, left, right, top, topLeft, topRight
Required: False
Position: Named
Default value: center
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specify the background image opacity.
Type: Double
Parameter Sets: (All)
Aliases: bgopacity
Required: False
Position: Named
Default value: 1.0
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specify the background image stretch mode.
Type: String
Parameter Sets: (All)
Aliases: bgstretch
Accepted values: fill, none, uniform, uniformToFill
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specify a valid color scheme. You should be able to tab-complete through the list of defined schemes.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: Campbell
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specify the command-line to run
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specify a cursor shape.
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: bar, doubleUnderscore, emptyBox, filledBox, underscore, vintage
Required: False
Position: Named
Default value: bar
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-Hidden
Do you want the profile to be marked as hidden?
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specify the name of your new profile.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specify a starting directory like %WINDIR% or C:\Work
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: %USERPROFILE%
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specify the tab title.
Type: String
Parameter Sets: (All)
Aliases: Title
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Do you want to enable acrylic settings?
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Learn more about PowerShell: http://jdhitsolutions.com/blog/essential-powershell-resources/