Created
February 4, 2021 17:48
-
-
Save jhoneill/adfa1b197f43654e84aa9caa5044a221 to your computer and use it in GitHub Desktop.
A PowerShell Productivity hack - put help in it's own window
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Show-Help { | |
<# | |
.Synopsis | |
Open help in "Show window" mode | |
#> | |
param ( | |
[parameter(ValueFromPipeline=$true)] | |
[ArgumentCompleter({ | |
param($commandName, $parameterName,$wordToComplete,$commandAst,$fakeBoundParameter) | |
[System.Management.Automation.CompletionCompleters]::CompleteCommand($wordToComplete) | |
})] | |
$Command | |
) | |
process {foreach ($c in $command) {Get-Help -ShowWindow $c} } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment