Configure Console2 to open bash in current folder

Posted by davidkennedy85 on Super User See other posts from Super User or by davidkennedy85
Published on 2012-09-07T00:05:03Z Indexed on 2012/09/12 21:41 UTC
Read the original article Hit count: 362

I've seen this but it doesn't work for me. I'm not using Git's version of bash but the one that comes with cygwin, so that could be part of the problem. Here is how I have my tab in Console2 set up:

Title: bash.exe
Shell: C:\cygwin\bin\bash.exe --login -i
Startup dir: %HOMEDRIVE%%HOMEPATH%

This is my registry entry:

Directory
    shell
        Console2
            Open Console2 Here
            command
                "C:\Console2\Console.exe" -d "%1"

bash always starts in my home directory instead of the directory I'm clicking on, then I have to cd /cygdrive/d/code ... etc. I tried removing the value in the "Startup dir" field, changing it to %1, %1% with no luck.

I also tried this solution but it didn't work for me either:

Title: bash.exe
Shell: C:\cygwin\bin\bash.exe -l

Registry:

Directory
    shell
        Console2
            Open Console2 Here
            command
                "C:\Console2\Console.exe" -d "%V"

.profile file in root directory:

cd -

Any ideas?

© Super User or respective owner

Related posts about bash

Related posts about windows-registry