A PowerShell module to improve Get-History and Invoke-History
The ExtendedHistory PowerShell module allows you to work with and manipulate the command history in PowerShell outside the current session. It provides functions to retrieve extended history, and invoke commands from the history.
- Clone or download this repository.
- Extract the contents to a directory.
- Open a PowerShell session and navigate to the directory containing ExtendedHistory.psd1.
- Import the module using:
Import-Module .\ExtendedHistory.psd1
The ExtendedHistory module provides several functions to work with the extended PowerShell command history.
# Retrieve and display the extended command history
Get-ExtendedHistory
# Invoke a command from the extended command history
Invoke-ExtendedHistory -i <index>