mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
5f2feee680
git has options that can appear before commands, but not all of them, and some of them need an argument. This means `__fish_seen_subcommand_from` will give too many false-positives, while `[ (count $cmd) -eq 2 ]` will give too many false-negatives. Instead go through all arguments and check if they are in that list of options that can be before a command and skip the argument for them, if any. |
||
---|---|---|
.. | ||
completions | ||
functions | ||
tools | ||
config.fish |