tristanisham / zvm

zvm (Zig Version Manager) lets you easily install/upgrade between different versions of Zig.
https://www.zvm.app
MIT License
484 stars 32 forks source link

Follow XDG specification #64

Closed glyh closed 7 months ago

glyh commented 8 months ago

Here's the description on Arch Linux: https://wiki.archlinux.org/title/XDG_Base_Directory

It would be nice if zvm follows the standard.

glyh commented 8 months ago

I filed a PR, please take a look :)

tristanisham commented 8 months ago

I do believe if you move your .zvm directory into .config/zvm and also your $PATH the program should just work. Could you please double check before writing any PRs?

I do think moving out of .zvm might be interesting. Maybe ZVM adds support for either .zvm or ~/.config/zvm. Checks the former before the latter for backwards compatibility (plus Windows builds).

glyh commented 8 months ago

I tried, zvm just ignored it. I have zvm installed with package manager, though(namely I don't have ZVM_INSTALL, and zvm is in my path taken cared by the package manager)

Also, may I ask which part of the program takes care of looking for zvm data in ~/.config/zvm?