Skip to content

Commit

Permalink
carapace: use bash completions for nix
Browse files Browse the repository at this point in the history
It currently cannot complete flake outputs but carapace can be configured to
bridge bash completions for certain commands.

See carapace-sh/carapace-bin#2374
  • Loading branch information
Atemu committed May 6, 2024
1 parent adfc8e5 commit 2edb489
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .config/carapace/specs/nix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# yaml-language-server: $schema=https://carapace.sh/schemas/command.json
name: nix
description: Upstream nix bash completions work better than current carapace completions
parsing: disabled
completion:
positionalany: ["$carapace.bridge.Bash([nix])"]

0 comments on commit 2edb489

Please sign in to comment.