Summary
I'm trying to write a script to automatically launch my development server in iTerm2 from VS Code.
When I open my VS Code project, I want my bash script to:
- open iTerm2 (
- run cd .. && cd OtherFolder
- run npm start (so my node server will start)
Problem
I know how to open iTerm2 but I can't figure out how to make the bash script I wrote then run the commands from #2 and #3 in iTerm2 because I need to run the bash script from the VS Code terminal and then open iTerm2.
screenortmuxto accomplish what you are trying to do.