[Bash-completion-devel] How to implement a stateful behavior in bash-completion?
Ville Skyttä
ville.skytta at iki.fi
Thu Dec 16 19:22:04 UTC 2010
On Thursday 16 December 2010, Yong Sun wrote:
> Hi, guys,
>
> I have another question, I'd like to implement a stateful behavior in
> bash-completion scripts, e.g., the behavior would be different for 1st
> tab and 2nd tab key pressed.
>
> The only thing I could imagine is to use global variables in functions.
>
> Do you know how could I implement this?
I don't, and I wouldn't even try myself. It would probably interact badly
with for example "set show-all-if-ambiguous on" in ~/.inputrc.
More information about the Bash-completion-devel
mailing list