Name
complete
Synopsis
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.
Options for word
|
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. |
Options for list
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. |
|
Aliases. |
|
Bindings. |
|
Commands. |
|
External (not built-in) commands. |
|
Directories. |
|
Directories whose names begin with string. |
|
Environment variables. |
|
Filenames. |
|
Filenames that begin with string. |
|
Groups. |
|
Jobs. |
|
Limits. |
|
Nothing. |
|
Shell variables. |
|
Signals. |
|
Text files. |
|
Text files whose names begin with string. |
|
Users. |
|
Any variables. |
|
Like |
|
Completions. |
select
select should be a glob pattern. Completions are limited to words that match this pattern. suffix is appended to all completions.
Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.