I have following bash startup script in Conemu console:

-new_console:d:C:\git\AgentReporting\src\AgentReporting.Client\agent-reporting-client set "PATH=%ConEmuDir%..\Git\usr\bin;%PATH%" & %ConEmuDir%..\Git\git-cmd.exe --no-cd --command=%ConEmuBaseDirShort%\conemu-msys2-64.exe /usr/bin/bash.exe -l -i -new_console:s20V

How to add "npm start" command to this?

  • I tried many ways and I don't know how to do that even if I look into this documentation... – Ap0st0l May 28 '19 at 11:51
  • So, you've asked wrong question. For question "how to run npm start in task" the answer is just run it in the task. Posted link to docs explains more complicated workflow. – Maximus May 30 '19 at 9:57
  • I'm not sure what do you mean... But by the way thank you for your hard work on this nice program mister @Maximus – Ap0st0l May 31 '19 at 7:56
  • I mean "execute some command on bash startup and leave the shell running thereafter". Solution is as simple as cmd /k bla-bla-bla for cmd, but is rather complicated for bash. Your question is not about that case. You don't need bash running. – Maximus May 31 '19 at 12:34

Ok, I managed to do that... But hell, it was hard to find any examples on the Internet.

-new_console:d:C:\git\AgentReporting\src\AgentReporting.Client\agent-reporting-client set "PATH=%ConEmuDir%..\Git\usr\bin;%PATH%" & %ConEmuDir%..\Git\git-cmd.exe --no-cd --command=%ConEmuBaseDirShort%\conemu-msys2-64.exe /usr/bin/bash.exe -l -i -new_console:s20Vt:"Ng Serve" -c "npm start"

Above script runs the bash console.

-new_console:d:C:\git\AgentReporting\src\AgentReporting.Client\agent-reporting-client - starting directory

s20Vt - it will open only in 20% of the window size, vertically, on the bottom.

t:"Ng Serve" - with the tab name "Ng Serve"

-c "npm start" - runs the command "npm start"

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.