dom96 / choosenim

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

nim not detected #314

Closed ArikRahman closed 1 year ago

ArikRahman commented 1 year ago

Howdy! I am currently running Garuda and used choosenim. When I install choosenim, I cannot call nim on other projects or from the terminal, it simply isn't found. It is in my bin folder however, at /home/arik/.choosenim/toolchains/nim-1.6.8/bin/nim

Yet I cannot call it. My bashrc file looks like this:

#

~/.bashrc

#

If not running interactively, don't do anything

[[ $- != i ]] && return

alias ls='ls --color=auto' PS1='[\u@\h \W]\$ ' . "$HOME/.cargo/env"

My workaround for this is to simply create my projects in this folder and cal ./nim Is there any fix? Thanks!

ArikRahman commented 1 year ago

Fixed it! I added

export PATH=$PATH:/home/arik/.choosenim/toolchains/nim-1.6.8/bin/

to the bashrc file, then I typed in . ./bashrc to the terminal and it worked!