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

How to make choosenim look for ".choosenim/current" in another directory rather than $Home in Linux? #295

Closed ShivangKakkar closed 2 years ago

ShivangKakkar commented 2 years ago

Some Beginner Questions

  1. I want my nim commands (nim c -r helloworld.nim) to look for ".choosenim/current" in another directory than $Home in Linux. How can I do that?

  2. Is there a way to install binaries too in another directory than $Home/.nimble/bin so I don't have to cp to another directory and then add to path inititally?

Currently I'm using this command - curl https://nim-lang.org/choosenim/init.sh -sSf | sh

Note that I would prefer not to get a one time solution as I'm writing a buildpack, which is to be used in different machines where nim is not initially installed.

Thank You!

dom96 commented 2 years ago

There are multiple ways: