Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

One of the nice features of vim is that you can ask it to ignore certain types of files when you hit tab by using the following command in vimrc:

set wildignore+=*.hi,*.pyc,*.o

Is there a similar setting for bash so I can ignore types of files when I tab in the command line?

share|improve this question
up vote 7 down vote accepted

The bash variable you are looking for is FIGNORE, for your example

export FIGNORE=$FIGNORE:.hi:.pyc:.o

I personally still cannot live without

export FIGNORE=$FIGNORE:CVS
share|improve this answer
    
What is CVS? A filename or something with special meaning? – Frozen Flame Jul 11 '15 at 4:21
    
@FrozenFlame, CVS is the directory where the archaic version control system cvs (nongnu.org/cvs) stores its control files. The example shows how FIGNORE may contain both file and directory patterns. – Benjamin Bannier Jul 11 '15 at 10:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .