From 7fa4b06eeaa9244b265cfeb9fcbb99f0012a7d2f Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Tue, 30 Sep 2025 09:31:22 +0200 Subject: [PATCH] carapace: Alias cat to bat For some reason the regular 'cat' completion does not work, perhaps because it is regularly aliased to 'bat' on my systems. This manually fixes it with a spec alias for carapace (https://carapace-sh.github.io/carapace-bin/spec/run.html#alias) Should find a better implementation over time but for now this is a simple workaround. I do _not_ know how it interacts with systems when no 'bat' command is found. --- sh/.config/carapace/specs/cat.yaml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 sh/.config/carapace/specs/cat.yaml diff --git a/sh/.config/carapace/specs/cat.yaml b/sh/.config/carapace/specs/cat.yaml new file mode 100644 index 0000000..c73491b --- /dev/null +++ b/sh/.config/carapace/specs/cat.yaml @@ -0,0 +1,3 @@ +# yaml-language-server: $schema=https://carapace.sh/schemas/command.json +name: cat +run: "[bat]"