complete [string [word/pattern/list[:select]/[suffix]]]
List all completions, or, if specified, all completions for string (which may be a pattern). Further options can be specified.
Complete current word only, without referring to pattern.
Complete current word only, referring to pattern.
Complete previous word.
Complete word before previous word.
Expect pattern to be a range of numbers. Perform completion within that range.
Various lists of strings can be searched for possible completions. Some list options include:
Members of the list string
Words from variable
Output from command
External (not built-in) commands
Directories whose names begin with string
Filenames that begin with string
Text files whose names begin with string
Like n, but prints select as an explanation with the editor command list-choices
select should be a glob pattern. Completions are limited to words that match this pattern. suffix is appended to all completions.