Skip to main content
5 events
when toggle format what by license comment
Mar 29, 2018 at 14:33 comment added Marie That was kind of what i meant. So there is no self-contained way for a command to set up its own autocomplete?
Mar 26, 2018 at 14:59 comment added muru @Marie complete -F <function-name> <command-name>, like in the example above. Completion is registered to command names, not to to paths, so depending on what you mean by "globally", this can only be done globally (for all commands with the same name)
Mar 26, 2018 at 14:55 comment added Marie As somebody whose bash proficiency is a little flaky, In a use case like this how to you load the completion? I have wanted to make completions myself a few times before but I have never really figured out how to register them besides globally.
Mar 26, 2018 at 12:55 vote accept ivan
Mar 26, 2018 at 3:31 history answered muru CC BY-SA 3.0