Complete gopass.exe on Windows
Fixes
@@ -4,6 +4,7 @@ import (
"context"
"fmt"
"regexp"
+ "runtime"
"strings"
fishcomp "github.com/gopasspw/gopass/pkg/completion/fish"
@@ -79,6 +80,9 @@ func (s *Action) CompletionBash(c *cli.Context) error {
`
out += "complete -F _gopass_bash_autocomplete " + s.Name
+ if runtime.GOOS == "windows" {
+ out += "\ncomplete -F _gopass_bash_autocomplete " + s.Name + ".exe"
+ }
fmt.Fprintln(stdout, out)
return nil
