Powershell 有没有办法为“获取帮助”设置替代查看器?

Powershell 有没有办法为“获取帮助”设置替代查看器?,powershell,Powershell,在探索powershell时,我经常使用“获取帮助”。但是,查看器只是“更多”,这意味着没有搜索、返回等。有没有办法为控制台设置替代查看器?(也就是说,我不是在寻找基于GUI/浏览器的东西)PowerShell使用预定义函数more()进行分页(它调用Windows附带的寻呼机more.com): 或者,您可以使用自己的实现替换该函数: Remove-Item function:more function more { # your implementation here } 无论哪种方

在探索powershell时,我经常使用“获取帮助”。但是,查看器只是“更多”,这意味着没有搜索、返回等。有没有办法为控制台设置替代查看器?(也就是说,我不是在寻找基于GUI/浏览器的东西)

PowerShell使用预定义函数
more()
进行分页(它调用Windows附带的寻呼机
more.com
):

或者,您可以使用自己的实现替换该函数:

Remove-Item function:more

function more {
  # your implementation here
}
无论哪种方式,你都会把改变放在你的生活中来坚持

Set-Alias more 'C:\path\to\less.exe'
Remove-Item function:more

function more {
  # your implementation here
}