Coder.comC
Coder.com10mo ago
Vlad

PATH getting overwritten on Windows VM

Hello! I am a very new coder user. Recently our corpeng started to a trial of this tool and we can provision Windows machines with it. This is amazing because I don't use windows much but still can test stuff on demand. I wrote myself a script which sets up machine and just copy-paste it. Big problem is that PATH getting wiped every time I do
ssh coder.my-machine
. I spend too much time browsing terraform files, but there is nothing indicating changin $env:Path. Only thing which isn't clear what's doing is
${coder_agent.main.init_script}
.
I tried adding items to my profile. I see them executing (echoing) when I ssh in, but path is overwritten after. Please help.
Was this page helpful?