Skip to content

Commit

Permalink
One more filepath
Browse files Browse the repository at this point in the history
  • Loading branch information
pjcdawkins committed Jan 10, 2025
1 parent 5dfa02f commit 71f5892
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package commands
import (
"bytes"
"fmt"
"path"
"path/filepath"
"strings"

"github.com/spf13/cobra"
Expand Down Expand Up @@ -50,7 +50,7 @@ func newCompletionCommand(cnf *config.Config) *cobra.Command {
pharPath,
cnf.Application.Executable,
),
path.Base(pharPath),
filepath.Base(pharPath),
cnf.Application.Executable,
)
fmt.Fprintln(cmd.OutOrStdout(), "#compdef "+cnf.Application.Executable)
Expand Down

0 comments on commit 71f5892

Please sign in to comment.