dom96 / choosenim

Tool for easily installing and managing multiple versions of the Nim programming language.
BSD 3-Clause "New" or "Revised" License
680 stars 64 forks source link

Customize `~/.choosenim` directory #236

Closed hyperupcall closed 2 months ago

hyperupcall commented 4 years ago

Hello! I think it would be great to have the ability to customize the ~/.choosenim directory location. I'd rather put it in a place like ~/.local/share/choosenim to declutter my home directory. Is there any interest in this feature? I would go further and mention XDG Base Directory compliance, but I think having some variable like CHOOSENIM_ROOT is an easy and quick fix, but use ~/.choosenim if it already exists for backwards-compatibility. (I would also add that the --nimbleDir argument is good, but will not always take effect for some scripts and the exec family of syscalls). Is there any interest in this?

Thanks, Edwin