Bash – Default console in ConEmu

conemugit-bash

I have git bash setup as a predefined task (task #1). But when I open ConEmu it defaults to cmd console, how do I change the default console to git bash?

Best Answer

In the settings (Win + Alt + P), select 'Startup'. This allows you to select a single task using the third option, 'Specify named task'. You can use the other options to specify multiple tabs to open on startup.

Startup Options Dialog

How to launch from command line \ shortcut \ script

You can also make a shortcut using the /cmd command line switch:

"C:\Program Files\ConEmu\ConEmu64.exe" /cmd PowerShell

Replace PowerShell with whatever you named your task. Here is a document listing all of the command line options. Note that if you run this while ConEmu is already running it will just open a new tab in the current window. This is usually the desired behavior but this behavior can be overridden using the -new_console and -cur_console switches (depending on your current setup).

How to add task bar jump list items

If you are using Windows 7 or higher, you may also be interested in looking at using the jump list to select a task to startup. This can be done in the 'Main' -> 'Task bar' options page. Check the 'Add ConEmu tasks to Task bar' box and press 'Update Now!'.

Task bar options page