I'm currently migrating from bash configs over to fish and got stuck translating my over bash exports. It seems there's three ways to do it in Fish that get the job done but I can't tell which one I should use, or if they have side effects I am unaware of
set -g VAR value
set -x VAR value
set -xg VAR value
Surely they do not all do the same thing. Can someone explain what the differences are and in which situations each is appropriate, please?
set -h
will show the meanings under scope options.