kkinnear / zprint

Executables, uberjar, and library to beautifully format Clojure and Clojurescript source code and s-expressions.
MIT License
547 stars 46 forks source link

Search for .zprintrc in XDG_CONFIG_HOME #291

Open lunik1 opened 1 year ago

lunik1 commented 1 year ago

It would be nice if zprint followed the XDG base directory specification on Linux by searching e.g. $XDG_CONFIG_HOME/zprint/zprintrc as well as $HOME/.zprintrc for a configuration file. This standard is followed by many common linux programs (git, emacs, htop, and tmux to name a few), avoids cluttering $HOME with dotfiles, and groups all config into one easily backupable directory.

kkinnear commented 1 year ago

Thanks for the idea. I'm not primarily a Linux user, so I managed to miss out on all of this XDG stuff. I'll look into it, and see if I can figure out how to use it in some way that doesn't cause serious headaches for existing users. From a cursory look, I think that should be possible.