It might be better to make these functions and to invoke them dynamically. That way, if the list of packages is updated, the completions will update too. Have a look at `__fish_print_packages`, too.