{"action":"created","issue":{"url":"https://api.github.com/repos/git-for-windows/git/issues/96","labels_url":"https://api.github.com/repos/git-for-windows/git/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/git-for-windows/git/issues/96/comments","events_url":"https://api.github.com/repos/git-for-windows/git/issues/96/events","html_url":"https://github.com/git-for-windows/git/issues/96","id":68715264,"number":96,"title":"Detect whether ConEmu/Console2/whatever is installed and offer to use that instead of mintty","user":{"login":"dscho","id":127790,"avatar_url":"https://avatars.githubusercontent.com/u/127790?v=3","gravatar_id":"","url":"https://api.github.com/users/dscho","html_url":"https://github.com/dscho","followers_url":"https://api.github.com/users/dscho/followers","following_url":"https://api.github.com/users/dscho/following{/other_user}","gists_url":"https://api.github.com/users/dscho/gists{/gist_id}","starred_url":"https://api.github.com/users/dscho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dscho/subscriptions","organizations_url":"https://api.github.com/users/dscho/orgs","repos_url":"https://api.github.com/users/dscho/repos","events_url":"https://api.github.com/users/dscho/events{/privacy}","received_events_url":"https://api.github.com/users/dscho/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/git-for-windows/git/labels/help%20wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/git-for-windows/git/labels/installer","name":"installer","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":32,"created_at":"2015-04-15T15:36:34Z","updated_at":"2015-04-22T10:05:01Z","closed_at":null,"body":"From https://gist.github.com/shiftkey/add6975be2687d8731ae#comment-1431040 and https://gist.github.com/shiftkey/add6975be2687d8731ae#comment-1432148, it appears that @oysteinkrog and @jaccus figured out ways to run the Git Bash inside ConEmu.\r\n\r\nHowever, it still requires manual setup by users which is not exactly the user experience I am striving for.\r\n\r\nThere is already support in the Git wrapper (which is used as `git-bash.exe`, for example) to configure (without recompiling) the command-line to be run after setting up the environment variables. If there is interest, I'll gladly describe the technical details.\r\n\r\nHowever, for ConEmu/Console2/whatever support, I will need to know two things *for each terminal emulator*:\r\n\r\n1. how to detect that it is installed on the user's machine (registry setting?)\r\n2. what is the command-line that executes the terminal emulator with a `bash --login -i` running inside. In other words, the equivalent of\r\n```sh\r\n\"usr\\bin\\mintty.exe -i /mingw64/share/git/git-for-windows.ico /usr/bin/bash --login -i\"\r\n```"},"comment":{"url":"https://api.github.com/repos/git-for-windows/git/issues/comments/95113103","html_url":"https://github.com/git-for-windows/git/issues/96#issuecomment-95113103","issue_url":"https://api.github.com/repos/git-for-windows/git/issues/96","id":95113103,"user":{"login":"dscho","id":127790,"avatar_url":"https://avatars.githubusercontent.com/u/127790?v=3","gravatar_id":"","url":"https://api.github.com/users/dscho","html_url":"https://github.com/dscho","followers_url":"https://api.github.com/users/dscho/followers","following_url":"https://api.github.com/users/dscho/following{/other_user}","gists_url":"https://api.github.com/users/dscho/gists{/gist_id}","starred_url":"https://api.github.com/users/dscho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dscho/subscriptions","organizations_url":"https://api.github.com/users/dscho/orgs","repos_url":"https://api.github.com/users/dscho/repos","events_url":"https://api.github.com/users/dscho/events{/privacy}","received_events_url":"https://api.github.com/users/dscho/received_events","type":"User","site_admin":false},"created_at":"2015-04-22T10:05:00Z","updated_at":"2015-04-22T10:05:00Z","body":"> ConEmu must be able to hook both 32-bit and 64-bit console application\r\n\r\nThat makes sense. But I still have a bad gut feeling about shipping 8MB extra, just for those users' benefit who want to use ConEmu (which I do not think will be the majority, even if ConEmu is clearly a nice program).\r\n\r\n> What should I do to build ConEmu with Git?\r\n\r\nI would recommend the [Git SDK](https://git-for-windows.github.io/#download-sdk). That is what I use myself to maintain Git for Windows (at least starting with 2.x).\r\n\r\nThen I would like to point you to https://github.com/git-for-windows/git/wiki/Package-management#rebuild-packages for information how to build packages. In your case, it should be something like\r\n\r\n```sh\r\ncd /usr/src/MINGW-packages\r\ngit fetch\r\ngit checkout master\r\ncd mingw-w64-conemu-git\r\nmakepkg-mingw -s\r\n```\r\n\r\njust to get started. You probably want to change the `PKGBUILD` and the provided patches, at least that's my guess. The resulting package should be installed via `pacman -U mingw-w64-conemu-*.pkg.tar.xz`.\r\n\r\n> ConEmu can be installed in fully portable mode\r\n\r\nThat is great. I think that it would be no problem to have a directory chooser in our installer where the user can point to that installation.\r\n\r\n> in most cases, one of the following registry keys might give you an installation path.\r\n\r\nPerfect.\r\n\r\nFor today, I have to take off of Git. Looking forward to reading up on the progress later!"}}