Skip to content

Remove-PSReadLineKeyHandler

SYNOPSIS

Removes a key binding.

SYNTAX

Remove-PSReadLineKeyHandler [-Chord] <String[]> [-ViMode <ViMode>] [<CommonParameters>]

DESCRIPTION

The `Remove-PSReadLineKeyHandler` cmdlet removes a specified key binding.

EXAMPLES

Example 1: Remove a binding

Remove-PSReadLineKeyHandler -Chord Ctrl+B

This command removes the binding from the key combination, or chord, `Ctrl+B`. The `Ctrl+B` chord is created in the `Set-PSReadLineKeyHandler` article.

PARAMETERS

-Chord

Specifies an array of keys or sequences of keys to be removed. A single binding is specified by using a single string. If the binding is a sequence of keys, separate the keys by a comma, as in the following example:

`Ctrl+x,Ctrl+l`

This parameter accepts an array of strings. Each string is a separate binding, not a sequence of keys for a single binding.

Type: System.String[]
Parameter Sets: (All)
Aliases: Key

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ViMode

Specify which vi mode the binding applies to. Possible values are: Insert, Command.

Type: Microsoft.PowerShell.ViMode
Parameter Sets: (All)
Aliases:
Accepted values: Insert, Command

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

You cannot pipe objects to this cmdlet.

OUTPUTS

None

NOTES

Get-PSReadLineKeyHandler

Get-PSReadLineOption

Set-PSReadLineOption

Set-PSReadLineKeyHandler

Back to top