View full history for powershell, not just current session
I have this in my PS profile:
function hist {
$find = $args;
Write-Host "Finding in full history using {`$_ -like `"*$find*`"}";
Get-Content (Get-PSReadlineOption).HistorySavePath | ? {$_ -like "*$find*"} | Get-Unique | more
}
The solution commented by "charles ross" is what I was looking for:
Get-Content (Get-PSReadlineOption).HistorySavePath | more