How to bundle bash completion with a program and have it work in the current shell?

Posted by extempore on Stack Overflow See other posts from Stack Overflow or by extempore
Published on 2010-04-11T07:32:23Z Indexed on 2010/04/11 7:33 UTC
Read the original article Hit count: 160

Filed under:
|
|

I sweated over the question above. The answer I'm going to supply took me a while to piece together, but it still seems hopelessly primitive and hacky compared to what one could do were completion to be redesigned to be less staticky. I'm almost afraid to ask if there's some good reason that completion logic seems to be completely divorced from the program it's completing for.

© Stack Overflow or respective owner

Related posts about bash

Related posts about tab-completion