ducaale / xh

Friendly and fast tool for sending HTTP requests
MIT License
5.49k stars 96 forks source link

Default `XH_CONFIG_DIR` to `~/.config/xh` in macOS #353

Closed ducaale closed 8 months ago

ducaale commented 8 months ago

This is a potentially disruptive change but aligns us better with our docs and HTTPie.

Addresses #352

blyxxyz commented 8 months ago

Maybe we can use the old location if it exists and the new one doesn't?

I'm also curious what other tools use in this case, I'll try to do a survey later.

blyxxyz commented 8 months ago

I checked a few programs in my (Linux) ~/.config:

I'm sold, ~/.config is the way to go for CLI tools.

HTTPie prioritizes its own legacy ~/.httpie fallback if that exists, without checking the XDG dir, so a bit simpler than my suggestion. But I think the more complicated logic is worth it.