View full history for powershell, not just current session
--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Popsicle Puzzles
--
Chapters
00:00 View Full History For Powershell, Not Just Current Session
01:08 Accepted Answer Score 18
01:22 Answer 2 Score 16
01:33 Answer 3 Score 0
01:48 Thank you
--
Full question
https://superuser.com/questions/1195895/...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#powershell #history
#avk47
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Popsicle Puzzles
--
Chapters
00:00 View Full History For Powershell, Not Just Current Session
01:08 Accepted Answer Score 18
01:22 Answer 2 Score 16
01:33 Answer 3 Score 0
01:48 Thank you
--
Full question
https://superuser.com/questions/1195895/...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#powershell #history
#avk47
ACCEPTED ANSWER
Score 18
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 }
ANSWER 2
Score 16
The solution commented by "charles ross" is what I was looking for:
Get-Content (Get-PSReadlineOption).HistorySavePath | more
ANSWER 3
Score 0
These commands are also stored in a text file. You can find the location of this file by executing:
(Get-PSReadlineOption).HistorySavePath
The keyword search provided above is helpful as well.