Quickly copy last PowerShell lines typed

Hi,

You can quickly copy the last lines you type with :

Get-History -Count 5 | select -ExpandProperty Commandline | clip

And, later, you can paste them wherever you need them.

Leave a Reply