tcsh style command line completion in bash

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
ckx
Posts: 9
Joined: Sat 15 Apr 2006, 12:30

tcsh style command line completion in bash

#1 Post 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'

Post Reply