Skip to content

Commit 9e96040

Browse files
authored
Merge pull request #2207 from rsteube/config-bridges
snippet: added configured bridges
2 parents 0d6ff02 + 96a2e72 commit 9e96040

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

cmd/carapace/cmd/lazyinit/snippet.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ func Snippet(shell string) string {
5050
}
5151
}
5252

53+
for name, s := range bridges.Config() {
54+
if s != shell { // don't bridge native completions
55+
uniqueNames[name] = true
56+
}
57+
}
58+
5359
for _, name := range completers.Names() {
5460
uniqueNames[name] = true
5561
}

docs/src/setup.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
> This registers all the available [completers](./completers.md).
44
> It is also possible to load a single one by replacing `_carapace` with the completer name (e.g. `carapace chmod`).
5-
>
6-
> Skipping a completer is not possible [yet](https://github.com/rsteube/carapace/pull/539), but registering a different one after carapace overrides it.
7-
> The script can also be edited manually to remove unwanted entries.
85
96
## Bash
107

0 commit comments

Comments
 (0)