PSReadLine

PSReadLine 模組包含 Cmdlet,可讓您在 PowerShell 中自定義命令行編輯環境。 這些文章記載 PSReadLine v1.2。 此版本隨附於 PowerShell v5.1 和更新版本。

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.