Name
complete
Synopsis
complete [options]command ...
Bash only. Specifies the way to complete arguments for each command. This is discussed in the section "Programmable Completion (Bash Only),” earlier in the chapter.
Options
-
-a Same as
-A alias.-
-Atype Use type to specify a list of possible completions. The type may be one of the following.
|
|
Alias names. |
|
|
Array variable names. |
|
|
Bindings from the readline library. |
|
|
Shell built-in command names. |
|
command |
Command names. |
|
|
Directory names. |
|
|
Names of disabled shell built-in commands. |
|
|
Names of enabled shell built-in commands. |
|
export |
Exported variables. |
|
file |
Filenames. |
|
|
Names of shell functions. |
|
|
Group names. |
|
|
Help topics as allowed by the help built-in command. |
|
|
Hostnames, as found in the file named by $HOSTFILE. |
|
|
Job names. |
|
|
Shell reserved keywords. |
|
|
Names of running jobs. |
|
|
Service names (from /etc/services). |
|
|
Valid arguments for |
|
|
Valid option names for the shopt built-in command. |
|
|
Signal names. |
|
|
Names of stopped jobs. |
|
|
Usernames. |
|
|
Shell variable names. |
-
-b Same as
-A builtin.-
-c Same as
-A command.-
-Ccommand Run command in a subshell and use its output as the list of completions.
-
-d Same as
-A directory.-
-e Same as
-A export.-
-f Same as
-A file.-
-Ffunction Run shell function function in the current ...