Skip to content

Commit

Permalink
Merge pull request #2649 from carapace-sh/powershell-fix-replace
Browse files Browse the repository at this point in the history
powershell: fix replace
  • Loading branch information
rsteube authored Dec 20, 2024
2 parents a0645f1 + c074d4c commit 1f32660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/carapace/cmd/lazyinit/powershell.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ func Powershell(completers []string) string {
$_carapace_lazy = {
param($wordToComplete, $commandAst, $cursorPosition)
$completer = $commandAst.CommandElements[0].Value.Replace("\.exe$", "")
$completer = $commandAst.CommandElements[0].Value -replace "\.exe$",""
carapace $completer powershell | Out-String | Invoke-Expression
& (Get-Item "Function:_${completer}_completer") $wordToComplete $commandAst $cursorPosition
}
Expand Down

0 comments on commit 1f32660

Please sign in to comment.