The Linux Page

Ignoring .svn, CVS, *~, .o, ... in bash auto-complete

Ever wondered whether you could ask bash auto-complete to ignore some of your files?

You can with the FIGNORE feature and the bind feature:

export FIGNORE=CVS:\~:.o:.svn
bind 'set match-hidden-files off'

You had one or both of these lines to your .bashrc file and then the .svn and CVS folders won't be used anymore! Add all the extensions you don't like in there and you'll feel better soon!

Note: The \ in front of ~ is to avoid the bash expansion of that character.