mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
6e3b9d8023
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`.
7 lines
No EOL
559 B
Fish
7 lines
No EOL
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)" |