Try this command on the fly:
After rebooting your terminal that environment variable will be reset. to keep the changes, edit the .zprofile, in case you are using zsh, or the equivalent file in your home, and add the same line:
Remember to reboot your terminal (open and close) after modifying that file.
Check if the environment variable was written properly:
You should see “trace” or the value you provided