bash autocompletion: add description for possible completions
Is it possible to make bash auto-completion look like in Cisco IOS shell? I mean to add short descriptions for each completion, like this: telnet 10.10.10. (TAB Pressed) 10.10.10.10 - routerA 10.10.10.11 - routerB where 10.10.10.10 and 10.10.10.11 are possible completions and routerA & routerB just descriptions (not to be executed). I know that bash can complete commands with "complete -W", but is it able to print descriptions for them? I have a solution to this that does not require pressing TAB more than twice or echoing any extra information. The key is to check whether there is only one