1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-22 14:44:01 +02:00
tldr/pages/common/compopt.md
Managor e9827040a0
complete, compgen, compopt: refresh pages (#17638)
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
2025-08-16 07:51:18 +00:00

614 B

compopt

Print or change the completion options for a command. -o means enabled and +o means disabled. See also: compgen, complete. More information: https://www.gnu.org/software/bash/manual/bash.html#index-compopt.

  • Print the completion options for given command:

compopt {{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:

compopt

  • Enable or disable a completion option of a command:

compopt {{-o|+o}} {{option1}} {{-o|+o}} {{option2}}