Alternative fix for the Nim path problem in zsh

This commit is contained in:
Zahary Karadjov 2019-09-04 16:51:58 +02:00
parent 705c897ee7
commit 58780243a7
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 3 additions and 1 deletions

View File

@ -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"