header
header Register : : Login header
header
divider
menuleft
menuright
submenu
left

[August 25th, 2008] Check the home page regarding PowerShell related news from a brand new sponsor: Idera

Help with (END) and the end of Get-Help
Last Post 07 Aug 2008 10:01 PM by gmilner. 2 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
gmilnerUser is Offline
New Member
New Member
Posts:2

--
07 Aug 2008 06:38 PM  

Hi,

 

I installed Pscx and Powertab and now, when I use Get-Help, it all goes into a separate screen or nested console app and then vanishes when I hit Q.

 

In other words, I get this at the end of the help display

----------------------------------------------------------------------------

...

...

 RELATED LINKS
    Set-Alias
    New-Alias
    Export-Alias
    Import-Alias

REMARKS
    For more information, type: "get-help Get-Alias -detailed".
    For technical information, type: "get-help Get-Alias -full".


(END)

----------------------------------------------------------------------------

... with  the (END) at the end and when I hit "Q" to quit, the whole help display goes away.

 

This is not the default Posh behavior. I liked having my Get-Help exit gracefully before I installed these, so I could look at the help while using a Cmdlet.

 

Can anyone tell me how I can turn this functionality off without having to unistall Powertab or Community Extensions?

 What it seems to be doing is adding  

     | less 

automattically to Get-Help. I just cannot figure out where to turn it off.

 

Thanks.

 

Greg

r_keith_hillUser is Offline
New Member
New Member
Posts:1
Avatar

--
07 Aug 2008 08:59 PM  
PSCX ships with GNU less394.exe which is a fairly sophisticated paging program. However if you don't want to use it then open up "$env:ProgramFiles\PowerShell Community Extensions\Profile\PscxAliases.ps1" and comment out the following two lines:

Set-PscxAlias man Get-PagedHelp script -Force
Set-PscxAlias help Get-PagedHelp script -Force

The next time you start up PowerShell you won't be using less anymore. BTW you can also invoke Get-Help directly and that will bypass all paging (not just less).
gmilnerUser is Offline
New Member
New Member
Posts:2

--
07 Aug 2008 10:01 PM  

Thanks, Keith. That worked perfectly.

-Greg

You are not authorized to post a reply.

Active Forums 4.1
right
   
footer Sponsored by Quest Software • SAPIEN Technologies • ShellTools, LLC • Microsoft Windows Server 2008 footer
footer