You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Get and set argument autocompletion rules of shell commands in Bash.
4
+
> The specified completions will be invoked when `<Tab>` is pressed in Bash.
5
+
> See also: `compgen`, `compopt`.
4
6
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-complete>.
5
7
6
-
-Apply a function that performs autocompletion to a command:
8
+
-Set arguments of a command to autocomplete through a function (completion response is sent in `COMPREPLY` variable):
7
9
8
10
`complete -F {{function}} {{command}}`
9
11
10
-
-Apply a command that performs autocompletion to another command:
12
+
-Set arguments of a command to autocomplete through another command (`$1` is the command, `$2` is the argument the cursor is on, and `$3` is the argument preceding the cursor):
0 commit comments