From 4f16428bcb740dce768d1dbd157ba92f4e5b5e98 Mon Sep 17 00:00:00 2001 From: Ruben Nicolaides Date: Wed, 12 Jun 2024 20:38:37 +0200 Subject: [PATCH] Use `--justfile` in Fish shell completions (#2148) --- src/completions.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/completions.rs b/src/completions.rs index 193700d..3d23d5f 100644 --- a/src/completions.rs +++ b/src/completions.rs @@ -94,6 +94,9 @@ export extern "just" [ ]"#; const FISH_RECIPE_COMPLETIONS: &str = r#"function __fish_just_complete_recipes + if string match -rq '(-f|--justfile)\s*=?(?[^\s]+)' -- (string split -- ' -- ' (commandline -pc))[1] + set -fx JUST_JUSTFILE "$justfile" + end just --list 2> /dev/null | tail -n +2 | awk '{ command = $1; args = $0;