mirror of
https://github.com/casey/just.git
synced 2025-12-23 11:37:29 +00:00
fix fish completions with words containing -f
This commit is contained in:
parent
c9ebc97808
commit
96cecb5e82
1 changed files with 4 additions and 4 deletions
|
|
@ -94,10 +94,10 @@ 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
|
||||
printf "%s\n" (string split " " (just --summary))
|
||||
if string match -rq '\s(-f|--justfile)\s*=?(?<justfile>[^\s]+)' -- (string split -- ' -- ' (commandline -pc))[1]
|
||||
set -fx JUST_JUSTFILE "$justfile"
|
||||
end
|
||||
printf "%s\n" (string split " " (just --summary))
|
||||
end
|
||||
|
||||
# don't suggest files right off
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue