Remove-PSReadLineKeyHandler

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+Shift+B

This command removes the binding from the key combination, or chord, Ctrl+Shift+B. The Ctrl+Shift+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:String[]
Aliases:Key
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:ViMode
Accepted values:Insert, Command
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

You cannot pipe objects to this cmdlet.

Outputs

None