Readline menu-complete

Activate readline menu-complete, back-menu-complete, and keep normal 'tab' completion.

About completion styles

Normal complete style is the one expected to happen when hitting Tab on any Linux distribution.

menu-complete style is the one expected to happen on MS-DOS. This one is more convenient when using a gamepad as input, since it cycles through each completion possibility.


There is a global config file for readline settings: /etc/inputrc.

Normal complete is complete, menu complete is menu-complete, and back menu complete is menu-complete-backward.


The tool showkey will display the codes for given special keystrokes.

^[[5~ Page-Up
^[[6~ Page-Down

^[ stands for escape, which is \e.


"\e[5~": menu-complete
"\e[6~": menu-complete-backward