Just use readline and files backend in shell
Use my fork of readline-complete