Support $XDG_CONFIG_HOME on macOS
See original GitHub issue- I have searched the issues of this repo and believe that this is not a duplicate.
- I have searched the documentation and believe that my question is not covered.
Feature Request
Follow configurations under $XDG_CONFIG_HOME on macOS too!
Current situation
Although macOS is a genuine UNIX OS and the document says
For Unix, we follow the XDG spec
you don’t, on macOS.
Rationale to support it
I’m using $XDG_CONFIG_HOME to manage configurations.
$ ls $XDG_CONFIG_HOME
alacritty/ configstore/ git/ iterm/ micro/ tmux/
anyenv/ fish/ hub karabiner/ ssh/
As you see, many tools like git, fish, anyenv and karabiner-elements supports XDG by nature (some are not by nature, but can be configured).
I believe this is good strategy since it’s more suitable to version-control in my “dotfiles” repository GitHub.
I know this will be breaking change, but at least, I want some way to configure it (such as env variable like PYPOETRY_FOLLOW_XDG
).
Issue Analytics
- State:
- Created 4 years ago
- Reactions:25
- Comments:7 (3 by maintainers)
Top Results From Across the Web
macos - Equivalents of XDG_CONFIG_HOME and ...
Comparing Apple's documentation for the various paths to the XDG Base Directory ... XDG_CONFIG_HOME → $HOME/Library/Application Support.
Read more >Allow XDG_CONFIG_HOME on macOS · Issue #4 - GitHub
XDG talks about using a shared directory structure for a user across multiple platforms and how some directories need to be distinct and...
Read more >12. Follow XDG-spec I'm so glad to see this included. I don't ...
Regrettably, OSX recommends the use of the Library/Application Support directory, and provides several utility APIs for getting config/cache/data locations ...
Read more >XDG Base Directory - ArchWiki
Application Legacy Path Supported Since
ALSA ~/.asoundrc 577df36 · 1.2.3
Android Studio ~/.AndroidStudioX.X Android Studio 4.1
Anki ~/Anki , ~/Documents/Anki
Read more >Location of personal init file (XDG_CONFIG_HOME)
Github issue#491 proposes to use the XDG base directory specification ... Other Unix: $XDG_CONFIG_HOME if present and ~/.config otherwise.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Have there been any developments here? Would be interested in this as well.
I created a PR to solve this issue, but since I don’t know it is considered a new feature or a bug fix, I create it against the
develop
branch. If this can be a bug fix for 1.0, I can submit another PR:~#1507~ #1823