So from nodejs I am calling exec('code /path/project') to open project so similar thing will not work for cd as it is executed in the separate shell. So apparently to achieve something that you mentioned I would have to write a shell script and somehow call it from nodejs which would be super hacky way of doing it.
So from nodejs I am calling
exec('code /path/project')
to open project so similar thing will not work forcd
as it is executed in the separate shell. So apparently to achieve something that you mentioned I would have to write a shell script and somehow call it from nodejs which would be super hacky way of doing it.Also, Thank you so much for reading this!
It would indeed be really hacky and hard to be cross-platform