Created
April 11, 2023 04:12
-
-
Save woodongwong/82992191a0daad628a79f3e47be9ce4b to your computer and use it in GitHub Desktop.
Get the history of all sessions in PowerShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PS > notepad $PROFILE | |
function Get-History-All | |
{ | |
Get-Content -Path (Get-PSReadlineOption).HistorySavePath | |
} | |
New-Alias history-all Get-History-All |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment