Files
api/path/to/venv/lib/python3.12/site-packages/invoke/completion/fish.completion
2025-12-30 11:27:14 +07:00

11 lines
382 B
Plaintext

# Invoke tab-completion script for the fish shell
# Copy it to the ~/.config/fish/completions directory
function __complete_{binary}
{binary} --complete -- (commandline --tokenize)
end
# --no-files: Don't complete files unless invoke gives an empty result
# TODO: find a way to honor all binary_names
complete --command {binary} --no-files --arguments '(__complete_{binary})'