Can someone please tell me what\'s the correct way to set a bunch of environment variables in the fish shell?
In my .config/fish/config.fish file, I have a function to s
Environment Variables in Fish
I would like to add that, while @JosEduSol's answer is not incorrect and does help solve the OP problem, -g
is only setting the scope to be global, while -x
is causing the specified environment variable to be exported to child processes.
The reason the above fails, is because @cfpete is setting the env vars inside a function and the default scope will be local to that function.