Skip to content

Instantly share code, notes, and snippets.

@jhoneill
Created February 4, 2021 17:48
Show Gist options
  • Save jhoneill/adfa1b197f43654e84aa9caa5044a221 to your computer and use it in GitHub Desktop.
Save jhoneill/adfa1b197f43654e84aa9caa5044a221 to your computer and use it in GitHub Desktop.
A PowerShell Productivity hack - put help in it's own window
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