From 35e0be09d12d24d6f10a1a57344710d382c169cf Mon Sep 17 00:00:00 2001 From: Leon Lysak Date: Tue, 2 Apr 2024 23:56:41 -0400 Subject: [PATCH 1/2] Updated readme to address potential issue with MacOs --- readme.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/readme.md b/readme.md index abe055e..2931751 100644 --- a/readme.md +++ b/readme.md @@ -78,6 +78,14 @@ wget -qO - https://nim-lang.org/choosenim/init.sh | sh script to install by specifying the ``CHOOSENIM_CHOOSE_VERSION`` environment variable. +**MacOs Note** If `choosenim` has been installed successfully, and you're still not able to use Nim or any of the tooling (ex: `nim --v`) follow these steps in your terminal: +- modify or create the `~/.zshrc` file with this line: `nano ~/.zshrc` +- add the following line to setup the PATH correctly: `export PATH="$HOME/.nimble/bin:$PATH"` +- make sure the current terminal session picks up the changes with this line: `source ~/.zshrc` +- now validate everything works properly with: `nim --v` + +By creating a `.zshrc` file and adding the path to `~/.nimble/bin`, you're ensuring that zsh (terminal) knows where to look for your Nim executables and other tooling every time it starts up. + ## How choosenim works Similar to the likes of ``rustup`` and ``pyenv``, ``choosenim`` is a From b33c5017eacb7f5db78210cf5a988b09e7fa9214 Mon Sep 17 00:00:00 2001 From: Leon Lysak Date: Wed, 3 Apr 2024 14:41:10 -0400 Subject: [PATCH 2/2] updated to support Unix in general Co-authored-by: Archar Gelod <60652075+Archargelod@users.noreply.github.com> --- readme.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/readme.md b/readme.md index 2931751..6e93ab7 100644 --- a/readme.md +++ b/readme.md @@ -78,14 +78,14 @@ wget -qO - https://nim-lang.org/choosenim/init.sh | sh script to install by specifying the ``CHOOSENIM_CHOOSE_VERSION`` environment variable. -**MacOs Note** If `choosenim` has been installed successfully, and you're still not able to use Nim or any of the tooling (ex: `nim --v`) follow these steps in your terminal: -- modify or create the `~/.zshrc` file with this line: `nano ~/.zshrc` +**PATH setup** If `choosenim` has been installed successfully, and you're still not able to use Nim or any of the tooling (ex: `nim --v`) follow these steps in your terminal: +- MacOs: modify or create the `~/.zshenv` file with your preferred editor, e.g. `nano ~/.zshenv` +- Linux: modify or create file `~/.bash_profile`, e.g. `nano ~/.bash_profile` - add the following line to setup the PATH correctly: `export PATH="$HOME/.nimble/bin:$PATH"` -- make sure the current terminal session picks up the changes with this line: `source ~/.zshrc` +- make sure the current terminal session picks up the changes with this line: `source ~/.zshenv` or `source ~/.bash_profile` - now validate everything works properly with: `nim --v` -By creating a `.zshrc` file and adding the path to `~/.nimble/bin`, you're ensuring that zsh (terminal) knows where to look for your Nim executables and other tooling every time it starts up. - +By creating a `.zshenv` or `.bash_profile` file and adding the path to `~/.nimble/bin`, you're ensuring that your shell (terminal) knows where to look for your Nim executables and other tooling every time it starts up. ## How choosenim works Similar to the likes of ``rustup`` and ``pyenv``, ``choosenim`` is a