How can I make bash tab completion behave like vim tab completion and cycle through matching matches?

前端 未结 5 697
一向
一向 2020-12-07 10:01

I\'ve been meaning to find a solution for this for YEARS.

I am sooo much more productive in vim when manipulating files than bash for this reason.

If I have<

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-07 10:20

    Thanks to @sth I found what works best for me:

    To keep normal bash tab completion, and then use ctl-f to cycle through when needed using menu-complete

    put this in your .inputrc file:

    "\C-f": menu-complete
    

提交回复
热议问题