Closed ShivangKakkar closed 2 years ago
There are multiple ways:
HOME
env.choonimDir
by passing --choosenimDir
: https://github.com/dom96/choosenim/blob/master/src/choosenimpkg/cliparams.nim#L83. Where the binaries end up can also be overriden via the nimbleDir
flag.
Some Beginner Questions
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?Is there a way to install binaries too in another directory than
$Home/.nimble/bin
so I don't have tocp
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!