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 Tab-Tab) 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'.


Is there a way


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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.