From 9364e5db932b6cf8b4bd7fa10c611e57733b0987 Mon Sep 17 00:00:00 2001 From: Matt Gucci Date: Tue, 16 Jan 2018 20:54:10 +0900 Subject: [PATCH] Fix Example 2 in Set-PSReadlineKeyHandler.md --- reference/5.0/PSReadline/Set-PSReadlineKeyHandler.md | 10 +++++----- reference/5.1/PSReadline/Set-PSReadlineKeyHandler.md | 10 +++++----- reference/6/PSReadLine/Set-PSReadlineKeyHandler.md | 10 +++++----- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/reference/5.0/PSReadline/Set-PSReadlineKeyHandler.md b/reference/5.0/PSReadline/Set-PSReadlineKeyHandler.md index fc00b5c9d45b..0383b1f133ac 100644 --- a/reference/5.0/PSReadline/Set-PSReadlineKeyHandler.md +++ b/reference/5.0/PSReadline/Set-PSReadlineKeyHandler.md @@ -41,11 +41,11 @@ PS C:\> Set-PSReadlineKeyHandler -Chord UpArrow -Function HistorySearchBackward This command binds the up arrow key to the function HistorySearchBackward, which uses the currently-entered command line as the start of the search string when it is searching through command history. ### Example 2: Bind a key to a script block -``` -PS C:\> Set-PSReadlineKeyHandler -Chord Shift+Ctrl+B -ScriptBlock { - [PSConsoleUtilities.PSConsoleReadLine]::RevertLine() - [PSConsoleUtilities.PSConsoleReadLine]::Insert('build') - [PSConsoleUtilities.PSConsoleReadLine]::AcceptLine() +```powershell +Set-PSReadlineKeyHandler -Chord Ctrl+Shift+B -ScriptBlock { + [Microsoft.PowerShell.PSConsoleReadLine]::RevertLine() + [Microsoft.PowerShell.PSConsoleReadLine]::Insert('build') + [Microsoft.PowerShell.PSConsoleReadLine]::AcceptLine() } ``` diff --git a/reference/5.1/PSReadline/Set-PSReadlineKeyHandler.md b/reference/5.1/PSReadline/Set-PSReadlineKeyHandler.md index 5e4b96db7bfc..9abafec5d5e6 100644 --- a/reference/5.1/PSReadline/Set-PSReadlineKeyHandler.md +++ b/reference/5.1/PSReadline/Set-PSReadlineKeyHandler.md @@ -41,11 +41,11 @@ PS C:\> Set-PSReadlineKeyHandler -Chord UpArrow -Function HistorySearchBackward This command binds the up arrow key to the function HistorySearchBackward, which uses the currently-entered command line as the start of the search string when it is searching through command history. ### Example 2: Bind a key to a script block -``` -PS C:\> Set-PSReadlineKeyHandler -Chord Shift+Ctrl+B -ScriptBlock { - [PSConsoleUtilities.PSConsoleReadLine]::RevertLine() - [PSConsoleUtilities.PSConsoleReadLine]::Insert('build') - [PSConsoleUtilities.PSConsoleReadLine]::AcceptLine() +```powershell +Set-PSReadlineKeyHandler -Chord Ctrl+Shift+B -ScriptBlock { + [Microsoft.PowerShell.PSConsoleReadLine]::RevertLine() + [Microsoft.PowerShell.PSConsoleReadLine]::Insert('build') + [Microsoft.PowerShell.PSConsoleReadLine]::AcceptLine() } ``` diff --git a/reference/6/PSReadLine/Set-PSReadlineKeyHandler.md b/reference/6/PSReadLine/Set-PSReadlineKeyHandler.md index 5e4b96db7bfc..9abafec5d5e6 100644 --- a/reference/6/PSReadLine/Set-PSReadlineKeyHandler.md +++ b/reference/6/PSReadLine/Set-PSReadlineKeyHandler.md @@ -41,11 +41,11 @@ PS C:\> Set-PSReadlineKeyHandler -Chord UpArrow -Function HistorySearchBackward This command binds the up arrow key to the function HistorySearchBackward, which uses the currently-entered command line as the start of the search string when it is searching through command history. ### Example 2: Bind a key to a script block -``` -PS C:\> Set-PSReadlineKeyHandler -Chord Shift+Ctrl+B -ScriptBlock { - [PSConsoleUtilities.PSConsoleReadLine]::RevertLine() - [PSConsoleUtilities.PSConsoleReadLine]::Insert('build') - [PSConsoleUtilities.PSConsoleReadLine]::AcceptLine() +```powershell +Set-PSReadlineKeyHandler -Chord Ctrl+Shift+B -ScriptBlock { + [Microsoft.PowerShell.PSConsoleReadLine]::RevertLine() + [Microsoft.PowerShell.PSConsoleReadLine]::Insert('build') + [Microsoft.PowerShell.PSConsoleReadLine]::AcceptLine() } ```