Wednesday, February 21, 2018

PowerShell remembers commands from closed windows

Occasionally I close PowerShell windows before remembering to look at some details in the commands I used (especially when there are a lot of numbers involved). New versions of PowerShell store the console history across sessions, so pressing the up arrow in a new prompt will show the last command executed in any PowerShell window. You can even press Ctrl+R to search for a command you used.

No comments:

Post a Comment