I think it would be a good idea to implement the XDG Base Directory Specifications for mbsync and put the .mbsyncrc in ~/.config/isync/mbsyncrc
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
It doesnt have to be standard, but I think it should rather be the preferred option for a configuration file, so mbsync first looks for it in .config and if its not found in the home directory.
~/.local/share/mbsync when
SyncState *
is not used would be also relevant.Upvoting this feature request
done in commit cf13630a0.
Thanks for implementing this and helping to unclutter our home directories!
Were the XDG Base Directory Specifications also followed for the .mbsync/ folder? Noticed on the Arch Wiki page that there are instructions for moving .mbsyncrc to ~/.config/isync but nothing about the .mbsync/ folder. Is it possible to move this folder to ~./local/share/mbsync? I've tried but it doesn't appear to work on my system. Sorry if I'm missing something related to this but couldn't find anything.
presumably, you didn't pay attention to the version?
the manual clearly states the new default locations (though i noticed that mentioning the defaults of the XDG variables would be helpful, too - done now).