get powershell history code example
Example 1: powershell get all history
(Get-PSReadlineOption).HistorySavePath
Example 2: shell search history
sudo add-apt-repository ppa:ultradvorka/ppa && sudo apt-get update && sudo apt-get install hstr && hstr --show-configuration >> ~/.bashrc && . ~/.bashrc