I’m on MacOS and typically I either code in arm64 bash or x86 bash, starting either of them (in iTerm) with arch -arm64|-x86_64 bash
and running my programming commands from there. Each mode has their own .bashrc (.bashrc-x86 and .bashrc-arm64), which sets the corresponding env variables for the environment.
Is there a way to tell Cursor chat mode terminal runs to be in one env or the other on a project-by-project basis?
Cursor tends to run things under my x86 environment always, and prepending arch -arm64
or arch -x86_64
to every command (or a shell script that does the same) is not a good solution, first it becomes hard to filter things in YOLO, second having it as a project rule is not consistent anyway, and requires loading the corresponding .bashrc everytime.