diff --git a/devbox.json b/devbox.json index 9627108022d..9ab08fec2e4 100644 --- a/devbox.json +++ b/devbox.json @@ -17,10 +17,13 @@ "DEVBOX_COREPACK_ENABLED": "true", "GOFLAGS": "-modcacherw", "GOPATH": "$DEVBOX_PROJECT_ROOT/.devbox/gopkgs", - "PATH": "$PATH:$DEVBOX_PROJECT_ROOT/.devbox/gopkgs/bin" + "PATH": "$DEVBOX_PROJECT_ROOT/.devbox/gopkgs/bin:$PATH" }, "shell": { - "init_hook": [". $VENV_DIR/bin/activate"], + "init_hook": [ + ". $VENV_DIR/bin/activate", + "[[ $OSTYPE == 'darwin'* ]] && export PATH=$(echo $PATH | tr ':' '\n' | sed '\\|^/nix/store/|d' | paste -sd ':' -)" + ], "scripts": { "versions": [ "java --version && mvn -v && node -v && pnpm -v && go version && helm version && make -v && python --version && pip --version"