How to get both tab completion and readline editing in mingw/msys shell

command-line-interfacerxvt

I'm running msys 1.0 on Win2K using the rxvt.exe terminal. By default, tab-completion works, but when I do 'set -o vi' to enable vi-readline editing, tab-completion stops working. Surely I can have my cake and eat it too?

Best Answer

Add this line to your ~/.inputrc:

"\C-i": vi-complete

To enable it in the current session without having to restart it, type this at the Bash prompt:

 bind '"\C-i":vi-complete'