Do you want to keep your home directory tidy and free from clutter? If so, xdg-ninja is here to help. This shell script checks your $HOME for unwanted files and directories, and tells you if it’s possible to move them to a more appropriate location.
The configurations for xdg-ninja come from the Arch Wiki page on XDG_BASE_DIR, antidot, and other users. The script is easy to use, and you can run it either manually or with Homebrew.
If you’re using nix, you can run the following command:
nix run github:b3nj5m1n/xdg-ninja.
xdg-ninja’s dependencies include your favorite POSIX-compliant shell, and
jq for parsing the JSON files. Additionally, you can use optional programs like
glow for rendering Markdown in the terminal.
You can configure xdg-ninja by defining a program and a list of files and directories that this program puts into your $HOME directory. For each file or directory, you can specify if it can be moved, and if so, you can provide instructions on how to accomplish that.
To learn more about xdg-ninja, visit the project’s GitHub repository. Keep your $HOME clean with xdg-ninja!