Remove-PSReadlineKeyHandler
Removes a key binding.
Syntax
Default (Default)
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.
Parameter properties
| Type: | String[] |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | Key |
Parameter sets
(All)
| Position: | 0 |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-ViMode
Specify which vi mode the binding applies to. Possible values are: Insert, Command.
Parameter properties
| Type: | ViMode |
| Default value: | None |
| Accepted values: | Insert, Command |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
None
You cannot pipe objects to this cmdlet.