fisher/completions/fisher.fish
Jorge Bucaran 6e3b9d8023
Load completions at completion rather than load time
What happens when we install a new plugin or remove
an existing plugin? If we don't reload completions,
Fish won't be able to tab-complete for installed or
removed plugins, e.g., continue tab-completing when
they are no longer installed.

By loading `update` and `remove` completions at
completion load time we now invoke `fisher list`
every time the user tabs after `fisher update`
or `fisher remove`.
2020-11-06 17:19:10 +09:00

7 lines
559 B
Fish

complete -c fisher -x -l help -d "print usage help"
complete -c fisher -x -l version -d "print fisher version"
complete -c fisher -x -n "__fish_use_subcommand" -a install -d "install plugins"
complete -c fisher -x -n "__fish_use_subcommand" -a update -d "update installed plugins"
complete -c fisher -x -n "__fish_use_subcommand" -a remove -d "remove installed plugins"
complete -c fisher -x -n "__fish_use_subcommand" -a list -d "list installed plugins matching <regex>"
complete -c fisher -x -n "__fish_seen_subcommand_from update remove" -a "(fisher list)"