Conversation
|
I'd be in favor of a build option to change the default install directory. For me I like my compilers to go in P.S. the purpose of the |
It's a tradition of the UNIX world. It's considered impolite to mess with one's home directory without notice. I remembered backlash back when Go did the same thing. In Go, I'd say for Linux, FYI, rustup use
I doubt most user care about that. I use |
|
Clearly the pattern there is
|
|
Creating a
The XDG base directory specification is the most widely accepted and well-documented answer to this question. Placing direct dotfiles in home is typically viewed as an incorrect legacy approach by the Linux community. The XDG standard is also not Linux-specific and is applicable to any unix-like system. If you want to cater to macOS, the correct location would be macOS File System Programming Guide
macOS Library Directory Details:
|
|
I've not personally used it, but I know a number of zig projects (e.g. zls) use https://github.com/ziglibs/known-folders for cross-platform support for paths to config/data folders. |
I'm not sure how other posix OS will handle this. On Linux
~/.local/share/zigis the proper path to use.