PSReadline Module
PSReadline 模块包含允许您在 PowerShell 中自定义命令行编辑环境的 cmdlet。 这些文章介绍了 PSReadline v1.2。 此版本在 PowerShell v5.1 及更低版本中提供。
PSReadline Cmdlet
| Cmdlet | 说明 |
|---|---|
| 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. |