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

I know that you can use FIGNORE to remove filename completion from suffixes.

For example, to avoid a lot of garbage files produced by LaTeX, I've been using:

FIGNORE=bst:aux:bbl:blg:pdf:fls:fdb_latexmk

However, I would really prefer to apply this FIGNORE only when using specific command line applications (in particular vim or mvim). That way, I would get full filename completion normally, and limit it only "on demand".

I've experimented a little with $if blocks in my ~/.inputrc file but without any luck.

share|improve this question
    
Did you try something like alias fvim='FIGNORE=bst:aux:bbl:blg:pdf:fls:fdb_latexmk vim'? – romainl May 26 '13 at 11:26
    
@romainl Just tried. It doesn't appear to work. FIGNORE may need to be set in the shell rather than used per command in that way. (Hadn't thought to do it that way - a good thought, but looks like it doesn't work.) – Telemachus May 26 '13 at 11:30

You must log in to answer this question.

Browse other questions tagged .