Add keybindings for cycling through completions (or for inserting the last or first completion) in Bash

$ bind '"er":menu-complete-backward';bind '"es":menu-complete'

menu-complete-backwardwas added in Bash 4.1. This makes for exampleM-sinsert the path of the first file in the current directory after a space when the word to be completed is empty.


Diff your entire server config at ScriptRock.com

Article Source.