mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-10 10:58:11 +00:00
Update cheatsheets
This commit is contained in:
16
tldr/compopt
16
tldr/compopt
@@ -6,12 +6,22 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# compopt
|
||||
|
||||
> Print or change the completion options for a command.
|
||||
> More information: <https://manned.org/compopt>.
|
||||
> `-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`
|
||||
|
||||
- Print the completion options for given command:
|
||||
- Enable or disable a completion option of a command:
|
||||
|
||||
`compopt {{command}}`
|
||||
`compopt {{-o|+o}} {{option1}} {{-o|+o}} {{option2}}`
|
||||
|
||||
Reference in New Issue
Block a user