Created
September 13, 2024 18:26
-
-
Save karimkod/8ba8f056fc00e3f4824e4fe2006cc4e2 to your computer and use it in GitHub Desktop.
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
param( | |
[Parameter(Mandatory, Position=0)] | |
[String] | |
$CommandLike | |
) | |
Get-Content (Get-PSReadLineOption).HistorySavePath | Where-Object { $_ -like "*$CommandLike*" -And $_ -NotLike "*Lazy-Up*" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment