ConEmu Commands in the Task

I try to run Task in ConEmu to open several consoles, and for each start a batch script is run when I open it. For example:

  • Open Git Bash, name the console "X", set the current directory to "Y".
  • Open another Git Bash and run a set of commands, for example "cd A / B / C", "vagrant up"
  • Open a normal command window, run the command "cd D / E / F", "grunt watch"

I want the second and third consoles to appear next to each other, but under the first console. So far, I'm stuck in getting commands to run; I have a task that runs the following:

"%ProgramFiles(x86)%\Git\bin\sh.exe" --login -i "-cur_console:n:t:Git Bash" "-cur_console:d:C:\Users\Ole Vik\dev"
"%ProgramFiles(x86)%\Git\bin\sh.exe" --login -i "-cur_console:s1TVn:t:Vagrant"
cmd "-cur_console:s2THn:t:Third"

Reading the ConEmu wiki led me to a new console and cur_console switches , but it's hard for me to understand if I can enter commands in the Task setup in any way, or maybe if I can run its .bat script on each console.

+4
source share
1 answer

Between the switches are not required colon ( nand t).

cmdhas a switch /kto run commands.

I don’t know how to tell bash "run this command and stay at the prompt." You might need to run the commands with &. I'm not sure about the second line, you need to check it yourself.

"%ProgramFiles(x86)%\Git\bin\sh.exe" --login -i "-cur_console:nt:Git Bash" "-cur_console:d:C:\Users\Ole Vik\dev"
cmd -cur_console:s1TVnt:Vagrant /c vagrant up & "%ProgramFiles(x86)%\Git\bin\sh.exe" --login -i"
cmd -cur_console:s2THnt:Third /k cd /d "D\E\F" & grunt watch
+7
source

Source: https://habr.com/ru/post/1527121/


All Articles