xdg-ninja is a shell script that checks for unwanted files and directories in the user’s home directory and suggests moving them to an appropriate location. The script uses a configuration file that contains rules for identifying unwanted files and directories. The configurations are from the arch wiki page on XDG_BASE_DIR, antidot, and contributions from other users. The script can be run manually by cloning the repository and running the xdg-ninja.sh script or installed with Homebrew. Optional dependencies include glow for rendering Markdown in the terminal. The script is available on GitHub. The tool has been discussed on Reddit and Hacker News.

  • PoorPocketsMcNewHold@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    If you want something a little easier to install, and especially, allow fixing a couple of those issues safely, and automatically, you can try antidot .

    xdg-ninja do already use the antidot rules natively, it’s mostly for those who don’t want to manually do the safest/easiest of fixes. It should be safe to use alongside xdg-ninja.

  • Turbo@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    I’m not understanding why we don’t want some config files in our home dir

    Where else would we put them and why would I want to have to back then all up from different places?

    Thx