PSReadLine

El módulo PSReadLine contiene cmdlets que permiten personalizar el entorno de edición de línea de comandos en PowerShell.

Ha habido muchas actualizaciones de PSReadLine desde la versión que se incluye en Windows PowerShell 5.1.

  • PowerShell 7.4.0 se incluye con PSReadLine 2.3.4
  • PowerShell 7.3.0 se incluye con PSReadLine 2.2.6
  • PowerShell 7.2.5 se incluye con PSReadLine 2.1.0
  • PowerShell 7.0.11 se incluye con PSReadLine 2.0.4
  • PowerShell 5.1 se incluye con PSReadLine 2.0.0

En estos artículos se documenta la versión 2.3.4 de PSReadLine.

Nota:

A partir de PowerShell 7.0, PowerShell omite la carga automática de PSReadLine en Windows si se detecta un programa de lector de pantalla. Actualmente, PSReadLine no funciona bien con los lectores de pantalla. La representación y el formato predeterminados de PowerShell 7.0 en Windows funcionan correctamente. Si es necesario, puede cargar manualmente el módulo.

PSReadLine

Get-PSReadLineKeyHandler

Gets the key bindings for the PSReadLine module.

Get-PSReadLineOption

Gets values for the options that can be configured.

PSConsoleHostReadLine

This function is the main entry point for PSReadLine.

Remove-PSReadLineKeyHandler

Removes a key binding.

Set-PSReadLineKeyHandler

Binds keys to user-defined or PSReadLine key handler functions.

Set-PSReadLineOption

Customizes the behavior of command line editing in PSReadLine.