Mark Redman

Mar 311 min

Powershell, your command history

Using PowerShell in, particularly in software development is often a much needed utility.
 

Instead of remembering previous repetitive commands, a very handy feature is to just pretty the up arrow to scroll through these, this is super handy.
 

 
In some cases, I have had to scroll a long way, but have found a handy script that will open the full command history into notepad++ (you can replace with your own text editor)
 

 
start notepad++ (Get-PSReadlineOption).HistorySavePath
 

 
This will just get the path: (Get-PSReadlineOption).HistorySavePath

I hope you found this useful.

    240
    0