Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.