get entire powershell history code example
Example 1: powershell get all history
(Get-PSReadlineOption).HistorySavePath
Example 2: show bash history
history # show all
history | tail -5 # show last 5
history | grep text # search for text
(Get-PSReadlineOption).HistorySavePath
history # show all
history | tail -5 # show last 5
history | grep text # search for text