Quickly copy last PowerShell lines typed


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

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.