entegra
entegra

Reputation: 305

How to configure ConEmu to start with gitbash and on a specific directory

I just installed the ConEmu terminal, and I am having trouble configuring it to start with gitbash as my terminal instead of the windows CMD, and I would like it to start on ex: /c/Users/Kalin/Drive

I tried to randomly pass values to the settings since they are very hard to understand. I have no idea what {Shell::cmd} means in the "tasks" category (which I guess is the place to change the configs) but I have no idea. The whole thing looks like something from a commercial aircraft and I'm lost :)

Upvotes: 3

Views: 3995

Answers (4)

Sundhar
Sundhar

Reputation: 149

Rather the simple way must be to add the path under Task Parameters as

/dir "C:\Dir\subDir....."

Upvotes: 0

Rajaraman Subramanian
Rajaraman Subramanian

Reputation: 801

In the latest version, this configuration is more simplified. Just do as follows

  1. Go to {Bash:Git bash} predefined task

  2. In the big text area, keep your cursor to the end of the prepopulated text, so that it is right after -new_console:d: text

  3. Below the big text area, you will see the following options

Add: Tab... | Startup dir... | File Path ... | Active tabs

  1. Just pick your startup directory from Startup dir... option

  2. Restart ConEmu and you will see the session starts with the startup directory you have configured.

Upvotes: 1

Fernando Soares
Fernando Soares

Reputation: 159

NameGoesHere's answer worked for me. I just had to make one modification on the fourth step:

When you set your directory you need to use "new_console:d:c/Users/Kalin/Drive", whithout the bar after "new_console:d:".

Upvotes: 0

NameGoesHere
NameGoesHere

Reputation: 276

You can try the following step-by-step instructions:

  1. Open the settings menu.
  2. Go to Startup -> Tasks in the left pane
  3. Click the + at the bottom of the list of "Predefined tasks (command groups)"
  4. In the big textbox, enter:

    c:\path\to\gitbash.exe -new_console:d:/c/Users/Kalin/Drive

  5. Save settings

The key thing to recognise is that this is the minimal config. To begin with, you will ignore all the options. When you want to do the next tweak, then look for it in the manual.

Upvotes: 7

Related Questions