Get-World | ConvertTo-PowerShell
Auto complete for about_* topics
Today I was heavily working with PowerShell help system. And was tired to call it using Get-Help cmdlet. So I created small function which I put to my profile:
function Show-HelpAboutFunction { $topics = Get-Help about_* foreach ($t in $topics) { $tn = $t.Name -replace 'about_', 'abt-' $text = "function global:$($tn) { Get-Help $($t.Name) }" Invoke-Expression "$text" } }
So when in console I can write: abt-func<Tab> and can circulate help topics till have the one I need. I know that for some topics is better to write Get-Help with partial help topic name, but in some cases I like my solution more.
Note: I know that abt is not approved verb
| Print article | This entry was posted by makovec on 07/01/2012 at 20:21, and is filed under PowerShell. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
