Skip to content

Instantly share code, notes, and snippets.

@karimkod
Created September 13, 2024 18:26

Revisions

  1. karimkod created this gist Sep 13, 2024.
    7 changes: 7 additions & 0 deletions Lazy-Up.ps1
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    param(
    [Parameter(Mandatory, Position=0)]
    [String]
    $CommandLike
    )

    Get-Content (Get-PSReadLineOption).HistorySavePath | Where-Object { $_ -like "*$CommandLike*" -And $_ -NotLike "*Lazy-Up*" }