-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add XDG_CONFIG_HOME support. #436
Conversation
On Linux and Mac, the default config directory is now "~/.config/httpie" instead of "~/.httpie".
Make sure the path in |
If it's not, then issue an error? |
Full disclaimer: I don't care about strict adherence and would rather something instead of nothing, so for example I don't care about people implementing support for As to your question, if the path set in |
Done ! |
@jkbrzt Hey, any blocker to merge this? It looks good. |
Any progress? |
Three months later, any news? |
@jkbrzt ? |
@jakubroztocil thoughts? Would love if this gets merged, my home directory would be thankful. |
@jakubroztocil Will this be merged? Will this not be merged? Can I help land it? |
☝️ same questions, if I can help by testing this locally or something else please let me know! Eagerly waiting for this to land. :) |
@jakubroztocil ping - see above |
@jakubroztocil Any plans to merge this at some point? |
I would also like to see this merged. @jakubroztocil, do you have any opposition to merging as-is? |
The problem with this patch is that it changes the default config location without taking into account existing installations — people would end up with two config files one of them being be ignored (extremely bad user experience). It also assumes the existence of ̉For this to be mergeable, it would need to:
|
Can just attempt to read ~/.httpie first and move it automatically if it exists right? |
Ah, I didn't notice the lack of legacy support. I would just add another branch to the if tree, before the end, that checks if |
On Unix-like systems, the configuration file now lives in $XDG_CONFIG_HOME/httpie/ by default, not ~/.httpie/ (the behaviour on Windows is unchanged). The previous location is still checked, in order to support existing installations. Searching $XDG_CONFIG_DIRS is still not supported. Fixes #145; supersedes #436.
On Linux and Mac, the default config directory is now "
/.config/httpie" instead/.httpie". Fixes #145of "