dgorur
dgorur

Reputation: 1662

Disable or unset specific bash completion

I invoked

complete -o default -F _foo foo

To enable bash auto-complete for the command foo. Now I want this to go away, while retaining any other completions that bash may know. How do I do this? I want a

complete --remove foo

Upvotes: 8

Views: 5281

Answers (1)

miken32
miken32

Reputation: 42675

help complete will tell you:

-r  remove a completion specification for each NAME, or, if no
    NAMEs are supplied, all completion specifications

Upvotes: 14

Related Questions