lckdscl's site

Cleaning out my $HOME

July 31, 2021

XDG_BASE_DIRECTORY crisis

I ran exa -a on my home directory one morning and found that it is littered with .dir and .file from compilers and packages that do not comply with the XDG standards. I did realise that I did not export the variables in my zshrc, so I did that and emptied my home directory pretty well. However, there are quite a few that needed their separate variable, like PACKAGE_XYZ_CONFIG_DIR=$HOME/.config/xyz/, some even needed alias that points the config directory to the right place. Such atrocity!

Regardless, I followed this extremely good resource that allowed me to de-clutter the ~/ directory extensively.

Things to remember

I have to edit LightDM root config according to this to get rid of .Xauthority