Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How do I create a right-click context menu entry to open Git Bash at a given folder within ConEmu? See Git Bash Here in Console2 for the equivalent question for Console2.

share|improve this question

2 Answers 2

up vote 64 down vote accepted

There are a number of ways this can be done in ConEmu as it is so highly configurable, but here's the way I do it.

  • In ConEmu, hit WinAltp to open the settings dialog.
  • Select the Tasks subsection under the Startup group and click the + icon to add a new 'Task'
  • In the Task Name field enter Git Bash, leave Task Parameters blank and add "C:\Program Files\Git\bin\sh.exe" --login -i to the Commands section. It should look something like this:

ConEmu Task Settings

  • Now select Integration under the Features group and enter the following under the ConEmu Here - Explorer menu integration section:
    • Menu item: ConEmu Here (Git Bash)
    • Command: /icon "C:\Program Files\Git\etc\git.ico" /single /cmd {Git Bash}
    • Icon file: C:\Program Files\Git\etc\git.ico
  • Click the Register button

ConEmu Integration Settings

This should add an entry in your right-click context menu (complete with icon). In the Command field you can use any of the ConEmu.exe switches (worth checking out for more complete documentation of what you can do - it's pretty powerful).

share|improve this answer
    
Heh, I didn't know about that Integration settings page. Is it possible to support switches in that integration page? I tried adding switches to the task parameters but couldn't get that working. I can't get icons working at all. How would you get ConEmu to recognise the git.ico file? –  Charles Roper Jul 27 '12 at 15:45
    
For example, I tried putting /icon "cmd.exe" in task parameters but the icon remains as the ConEmu one. –  Charles Roper Jul 27 '12 at 15:47
    
OK, Download build 120727b or later. Goto "Integration" page. In the group "ConEmu Here" you may create any shell menu items and use conemu.exe switches in the "Command" field. For example /icon "cmd.exe" /cmd {Git Bash} –  Maximus Jul 28 '12 at 2:55
    
OK, I'm n 120727b and my Integration for Git Bash looks like this: i.imgur.com/XF8A8.png. This works, but the icon doesn't. What is supposed to happen? I still get the default ConEmu icon. –  Charles Roper Jul 28 '12 at 21:01
1  
Installed Git Bash today and had to use this to get it to work with ConEmu: C:\Windows\SysWOW64\cmd.exe /c ""C:\Program Files (x86)\Git\bin\sh.exe" --login -i" –  jcollum Jan 3 '13 at 21:30

Starting with ConEmu Portable .7z downoad and msysgit PortableGit .7z download, I created the following Windows shortcut. Of course adjust your portable path to ConEmu and Git appropriately.

LNK Target:

D:\PortableApps\ConEmu\ConEmu.exe /cmd bin\bash.exe --login -i -cur_console:n

LNK Start in:

D:\PortableApps\Git-msysgit

Git Bash Conemu lnk

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.