Skip to content

ConEmu

Basic usage

ConEmu -single -cmd COMMAND -new_console:P:PALETTE -new_console:t:TABNAME
  • -cmd COMMAND: execute COMMAND with ConEmu. COMMAND here can be a "ConEmu task" such as "{GitBash}"
  • -new_console:P:PALETTE: specify the PALETTE, such as <xterm>
  • -new_console:t:TABNAME: specify the tab name showing on ConEmu
  • -new_console:a: run as admin

Example:

ConEmu64.exe -single -cmd C:\git\git-bash.bat -new_console:P:<xterm> -new_console:t:GIT
ConEmu64.exe -single -cmd {GitBash} -new_console:P:<xterm> -new_console:t:GIT

For some reason the argument -new_console will not be processed if ConEmu64 window does not already exist. In order for the -new_console to work for the first tab, it is recommended to create a "ConEmu task" and add -new_console as part of the task.

Creating a ConEmu task for "Git for Windows"

Creating a ConEmu task {GitBash} for "Git for Windows" 2.0

  1. Calling a GUI application mintty.exe to invoke bash

    set MSYSTEM=MINGW64 & C:\git\usr\bin\mintty -o FontHeight=14 /usr/bin/bash --login -i -new_console:P:<xterm> -new_console:t:GIT
    
  2. Calling git-cmd.exe with arguments recommended by ConEmu website:

    set MSYSTEM=MINGW64 & git-cmd.exe --no-cd --command=usr/bin/bash.exe -l -i -new_console:P:<xterm> -new_console:t:GIT