We can export variables from the command line with set -x, but I'd like to know how to do this from within a file. The reason is that I'm organizing my $HOME directory according to the XDG convention, and the Arch wiki says this about zsh:
Consider exporting
ZDOTDIR=$HOME/.config/zshin~/.zshenv. You could also add this to/etc/zsh/zshenv.
I want to effect an export from /etc/zsh/zshenv to avoid cluttering my $HOME. Can I simply input the Fish Shell command set -x from within this file or is there an alternative?
Thanks
~/.zshenv. I was hoping to prevent that.