Completion types:
- Internal commands and subcommands
- External commands
- Files (executable)
Location(s):
- Beginning of a pipeline
command <subcommand>
Completion types:
- Based on signature
Location(s):
command <arg>
... | command <arg> ... | ...
Completion types:
- Flag names (from signature)
Location(s):
command -<short> ...
command --<long> ...
Completion types:
- Based on signature
Location(s):
command -f <arg>
command --flag=<arg>
Completion types:
- Variable names from context
- Argument names from alias
Location(s):
$<var>
$a.b.<var>
Completion types:
- Operators
Location(s):
= value <op> value