Page 1 of 1

tcsh style command line completion in bash

Posted: Sat 29 Apr 2006, 15:45
by ckx
Bash has command line completion but if there are more than one matches it just shows the partial match. Pressing tab again shows all matches and then you can type a few more letters, press tab again and finally complete the match. With the tcsh, pressing tab completes the first matching file, pressing tab again cycles through the other matches. If you prefer this behavior, add the following line in your .bashrc file:

bind '"\t":menu-complete'