Dynamically invoke yarn completions so they aren't cached

Correct `-a (something)` to `-a '(something)'`
This commit is contained in:
Mahmoud Al-Qudsi 2018-04-18 21:43:39 -05:00
parent 9d9afd8264
commit c2e66b002a

View file

@ -49,7 +49,7 @@ function __yarn_list_packages
end
complete -f -c yarn -n '__fish_seen_subcommand_from remove' -a (set -l packages (__yarn_list_packages); echo $packages)
complete -f -c yarn -n '__fish_seen_subcommand_from remove' -a '(__yarn_list_packages)'
complete -f -c yarn -n '__fish_use_subcommand' -a help