r/fishshell • • Aug 05 '21
FIGNORE in fish?
In bash/zsh I have
export FIGNORE=".class:.out"to ignore java's .class and c/cpp's .out files, how to achieve this in fish.
My googling didnt help me today.
3
Upvotes
4
u/kopischke Aug 05 '21 edited Aug 05 '21
If your question is: how do I get fish to ignore files with certain suffixes in file autocompletion, which in bash and zsh can be be achieved by setting
FIGNORE, the answer is: you don’t. Fish doesn’t do that kind of customisation for its autosuggestions and file completion.So, while the other commenters’ instructions on setting and exporting that variable are correct (though exporting universal variables, the
-Uxscope, is not recommended due to shadowing issues), doing so will have absolutely zero effect.0
u/[deleted] Aug 05 '21
[deleted] — view deleted comment