I would like to make all my scripts XDG-Base-Directory-compliant, in order not to clutter our $HOMEs anymore 😋
IDEA OF IMPLEMENTATION:
for instance, replace hardcoded $HOME/.local/share by data_home where data_home is defined at runtime by
data_home=${XDG_DATA_HOME-$HOME/.local/share}
That is, by default, the data_home will be located at $HOME/.local/share. But the user can change the location of the files by exporting the XDG_DATA_HOME environment variable to another location!