21.4.1 Simple Flags

These produce completion lists made up by the shell itself:

-f

Filenames and file system paths.

-/

Just file system paths.

-c

Command names, including aliases, shell functions, builtins and reserved words.

-F

Function names.

-B

Names of builtin commands.

-m

Names of external commands.

-w

Reserved words.

-a

Alias names.

-R

Names of regular (non-global) aliases.

-G

Names of global aliases.

-d

This can be combined with -F, -B, -w, -a, -R and -G to get names of disabled functions, builtins, reserved words or aliases.

-e

This option (to show enabled commands) is in effect by default, but may be combined with -d; -de in combination with -F, -B, -w, -a, -R and -G will complete names of functions, builtins, reserved words or aliases whether or not they are disabled.

-o

Names of shell options (see Options).

-v

Names of any variable defined in the shell.

-N

Names of scalar (non-array) parameters.

-A

Array names.

-I

Names of integer variables.

-O

Names of read-only variables.

-p

Names of parameters used by the shell (including special parameters).

-Z

Names of shell special parameters.

-E

Names of environment variables.

-n

Named directories.

-b

Key binding names.

-j

Job names: the first word of the job leader’s command line. This is useful with the kill builtin.

-r

Names of running jobs.

-z

Names of suspended jobs.

-u

User names.