Skip to content

Instantly share code, notes, and snippets.

@mizuneko
Last active August 31, 2019 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mizuneko/4481d1fdc5d97b45d815822706a4641c to your computer and use it in GitHub Desktop.
Save mizuneko/4481d1fdc5d97b45d815822706a4641c to your computer and use it in GitHub Desktop.
more のレスポンス改善
function psmore
{
begin
{
$scriptCmd = { Out-Host -Paging }
$steppablePipeline = $scriptCmd.GetSteppablePipeline()
$steppablePipeline.Begin($true)
}
process
{
try
{
$steppablePipeline.Process($_)
}
catch
{
break;
}
}
end
{
$steppablePipeline.End()
}
}
# e.g. dir c:\windows -Recurse | psmore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment