0

I tried to use Terminal Plugin for ST3, like that

{
"terminal": "D:/Mega/SOFT/ConEmu/ConEmu.exe",
"parameters": ["C:/Program Files (x86)/Git/bin/sh.exe"]
}

Sh.exe launches, but I can't pass "--login -i" parameters to it.

{
"terminal": "D:/Mega/SOFT/ConEmu/ConEmu.exe",
"parameters": ["C:/Program Files (x86)/Git/bin/sh.exe --login -i"] // not working
}

/cmd {Git bash} and other switches also don't work here

Mihail
  • 618
  • 5
  • 16
  • 1
    Use short name for "Program Files" or correct double quotes around path with spaces. – Maximus Jul 20 '15 at 12:10
  • Unfortunately neither "\"C:/Program Files (x86)/Git/bin/sh.exe\" --login -i" nor "%ProgramFiles%/Git/bin/sh.exe" does not work at all, ConEmu does not pass "--login -i" parameters to sh.exe, instead these parameters applies to conemu.exe and that throws an error "no switch --login". – Mihail Jul 20 '15 at 15:17
  • ConEmu could be launched with any terminal using parameters "/cmd {script}", but this is possible in Win links . I'm not so good at it, but I think ST3 Terminal plugin uses cmd.exe to launch another terminal. And there is no "/cmd" switch for ConEmu via cmd.exe, and no ConEmu {script} could be used in this way. – Mihail Jul 20 '15 at 15:22
  • So, my question could be rephrased to "How to launch Git bash in ConEmu from cmd.exe?". – Mihail Jul 20 '15 at 15:23
  • 1
    I've said **short** name! E.g. `PROGRA~1`. And you may easily check exact command line poised to ConEmu from TaskManager. I believe it's wrong. – Maximus Jul 20 '15 at 17:02
  • Thanks, that really helped. I did not know about short names before you replied. – Mihail Jul 21 '15 at 10:49
  • Also I've found a way to pass ConEmu scripts correctly - `"parameters": ["/cmd", "{Git bash}", "-cur_console:n"]` – Mihail Jul 21 '15 at 10:50

2 Answers2

0

This works for me:

{
    "terminal": "D:/Mega/SOFT/ConEmu/ConEmu.exe",
    "parameters": ["/cmd", "%ProgramFiles%/Git/bin/sh.exe", "--login", "-i"]
}
Maxim Suslov
  • 4,335
  • 1
  • 35
  • 29
0

That's work for me:

{
  "terminal": "C:\\Program Files\\ConEmu\\ConEmu64.exe",
  "parameters": ["-run", "bash"]
}
Alex
  • 161
  • 3
  • 8