Bash – Assign both menu-complete and dynamic-complete-history to TAB

autocompletebashinputrcreadline

Is there a way for me to assign both menu-complete and dynamic-complete-history to Tab (or one to Tab and the other to TabTab) in .inputrc?

I'm thinking there might be a way to setup a function and use COMPREPLY, but I can't figure out how.

What I would like to do is use 'dynamic-complete-history' for the first tab press, and if tab is pressed again use 'menu-complete'.

Best Answer

Is there a way

No.

Sounds like motivation for putting together a feature patch and a bash pull-request.