commands.sh

compopt

all

Print or change the completion options for a command. `-o` means enabled and `+o` means disabled. See also: `compgen`, `complete`.

More info →

Examples (4)

Print the completion options for given command

Enable or disable a completion option of a command

compopt -o|+o option1 -o|+o option2 command

Print the options for the currently executing completion

Enable or disable a completion option of a command

compopt -o|+o option1 -o|+o option2
made by @shridhargupta | data from tldr-pages