What does HackerNews think of xdg-ninja?

A shell script which checks your $HOME for unwanted files and directories.

Language: Haskell

#72 in Linux
#28 in Shell
#32 in Terminal
Regarding ~/.cargo (and other tools), I've had some success with following suggestions from https://github.com/b3nj5m1n/xdg-ninja
https://github.com/b3nj5m1n/xdg-ninja

This utility has been a lifesaver to clean up my home directory.

To clean up your home-dir from .dotfiles, theres xdg-ninja [1] which assists you to make all your applications to follow the XDG specs.

[1] https://github.com/b3nj5m1n/xdg-ninja

If anyone would like to actually force the non-compliant applications to do the thing correctly, then xdg-ninja is your friend [0]. The script looks at all the dotfiles in the home folder and tells you what environment variables you have to set to make them follow XDG base directory specifications, in the cases where that's not possible it will show you the related GitHub issue or similar bug tracking option with the problem.

My current dotfiles [1] already have a lot of these and they mostly just work. Once in a while an application won't respect it completely, and so instead of having a mess with xdg + whatever the dev though was cooler I just let the application do it's thing so at least is somewhat predictable.

[0]: https://github.com/b3nj5m1n/xdg-ninja

[1]: https://github.com/DoodlesEpic/Dotfiles/blob/main/.profile

There are shell scripts like xdg-ninja that can help with this:

https://github.com/b3nj5m1n/xdg-ninja