I use several shell sections, with different parameters to compile applications for multiple platforms, sometimes need to close a shell and open it again for some reason, a crash or another reason.
I use scripts to keep the environment variables parameterized as accurate, but sometimes I change a variable so I have to create a new script, just for that moment which makes it a bit inconvenient.
Shell, in particular Bash, has some feature that I can export the variables between sections so I do not have to create scripts? Can I close the shell and import a set of variables according to a profile I want?