Skip to content

Commit

Permalink
Use --justfile in Fish shell completions (#2148)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubot authored Jun 12, 2024
1 parent 8778972 commit 4f16428
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/completions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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*=?(?<justfile>[^\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;
Expand Down

0 comments on commit 4f16428

Please sign in to comment.