We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7b7cc17 + 34ad375 commit 08c3a82Copy full SHA for 08c3a82
cmd/carapace/cmd/lazyinit/powershell.go
@@ -11,7 +11,7 @@ func Powershell(completers []string) string {
11
12
$_carapace_lazy = {
13
param($wordToComplete, $commandAst, $cursorPosition)
14
- $completer = $commandAst.CommandElements[0].Value.trimend(".exe")
+ $completer = $commandAst.CommandElements[0].Value.Replace("\.exe$", "")
15
carapace $completer powershell | Out-String | Invoke-Expression
16
& (Get-Item "Function:_${completer}_completer") $wordToComplete $commandAst $cursorPosition
17
}
0 commit comments