Muokkaa

Jaa


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+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:String[]
Aliases:Key
Position:0
Default value:None
Required:True
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
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

You can't pipe objects to this cmdlet.

Outputs

None

This cmdlet returns no output.