ConEmu在任务命令 [英] ConEmu commands in task
问题描述
我试图让一个任务在ConEmu打开多个控制台,并为每个打开时运行的批处理般的脚本。例如:
I'm trying to get a Task in ConEmu to open several consoles, and for each run a batch-like script when opened. For example:
- 打开一个Git猛砸,命名控制台X,将当前目录为Y。
- 打开另一个Git的Bash和运行一个命令集,例如CD A / B / C,无业游民了
- 打开一个普通的命令窗口中,运行命令CD D / E / F,咕噜表
我想在第二和第三控制台到一起显示,但第一个控制台下方。到目前为止,我坚持让运行命令;我有一个运行以下任务:
I want the second and third consoles to appear alongside each other, but underneath the first console. So far I am stuck 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"
阅读ConEmu 维基主导我到new_console和cur_console 开关,但我遇到问题搞清楚,如果我能以某种方式在任务设置输入命令,或者如果我能有它运行的每个控制台上的蝙蝠脚本。
Reading the ConEmu wiki led me to the new_console and cur_console switches, but I'm having trouble figuring out if I can somehow enter commands in the Task setup, or maybe if I can have it run a .bat script on each console.
推荐答案
需要开关( N
&放大器之间没有冒号; T
为例)。
No colon is needed between switches (n
& t
for example).
CMD
的 / K
切换运行命令。
我不知道的方式告诉bash的运行这个命令,留在提示。可能是你需要运行与&放命令;
。我不知道第二行,你需要自己去查。
I don't know the way to tell bash "run this command and stay in prompt". May be you need to run commands with &
. I'm not sure about 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
这篇关于ConEmu在任务命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!