Can FIGNORE be limited to specific applications?

0

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.

Telemachus

Posted 2013-05-26T11:20:26.433

Reputation: 5 695

Did you try something like alias fvim='FIGNORE=bst:aux:bbl:blg:pdf:fls:fdb_latexmk vim'? – romainl – 2013-05-26T11:26:40.993

@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 – 2013-05-26T11:30:16.843

No answers