From 58780243a79b6aaf3f8f5a1ee3415d08ce99dd7b Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Wed, 4 Sep 2019 16:51:58 +0200 Subject: [PATCH] Alternative fix for the Nim path problem in zsh --- scripts/env.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/env.sh b/scripts/env.sh index f2f32f0..e9c4360 100755 --- a/scripts/env.sh +++ b/scripts/env.sh @@ -24,9 +24,11 @@ export NIMBUS_ENV_DIR="${ABS_PATH}" export GOPATH="${ABS_PATH}/../../go" export GO111MODULE=on +export NIM_PATH=$(cd "${ABS_PATH}/../vendor/Nim/bin"; pwd) + #- make it an absolute path, so we can call this script from other dirs #- we can't use native Windows paths in here, because colons can't be escaped in PATH -export PATH="${ABS_PATH}/../vendor/Nim/bin:${GOPATH}/bin:${PATH}" +export PATH="${NIM_PATH}:${GOPATH}/bin:${PATH}" # Nimble needs this to be an absolute path export NIMBLE_DIR="${ABS_PATH}/../../.nimble"