I just wanted to be able to add inside some fish configuration file (don't know which/where) the same function as this:
export PERL5LIB=/home/iaco/workspace/perl:/home/iaco/devtools
This line was added inside the .bashrc file and it was able to export the variable each time I opened a terminal.
Is there something like that for fish? I know that I can export variables in fish using the "set" command, but I want to modify one file (don't know which one) in order to automatically add those variables each time I open a fish terminal.
-xflag. I've just updated the answer, and you can read more about that in the section "Exporting variables" in the documentation. – Adam Byrtek Apr 07 '11 at 16:58$PATHetc can be used in fish, including in config.fish. – Scribblemacher Jun 23 '19 at 12:39