• thevoidzero@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    15 hours ago

    Auto complete is a separate command (or a bash function) that runs when you press tab. It’s a feature of the terminal (e.g. bash). Programs can provide theur auto complete while distributing their packages, or provide a flag to generate auto complete.

    So I would think you can just call that function call auto complete for whatever command is after sudo. But maybe it gets complicated. I’ve only written it for my own programs.