diff --git a/completers/git_completer/cmd/switch.go b/completers/git_completer/cmd/switch.go index 5a70665d76..127170838b 100644 --- a/completers/git_completer/cmd/switch.go +++ b/completers/git_completer/cmd/switch.go @@ -45,4 +45,8 @@ func init() { carapace.Gen(switchCmd).PositionalCompletion( git.ActionRefs(git.RefOption{LocalBranches: true}), ) + + carapace.Gen(switchCmd).DashAnyCompletion( + carapace.ActionPositional(switchCmd), + ) }