I am using Console2 as a bash wrapper on Windows. Most importantly, it enables me to start up a new bash tab in a predefined project directory.
Now I would like to replace the Windows command line by a Cygwin bash. However, the "Startup Dir" setting in Console2 is not respected by Cygwin.
Basically, I see three solution approaches:
Searching around in Cygwin's documentation and the rest of the Internet, I could not find a solution to any of those approaches. I could imagine that the solution is trivial to someone else, though. :)
environment: Win XP, Console 2.00.146, Cygwin 1.7.7, GNU Bash 3.2.51(24)
As for the last bullet point, edit your ~/.bashrc
and add a cd
command at the end.
Instead of that, you can try this for your first bullet point: If your Console2 configuration to start Bash looks something like this:
bash --login -i
change it to:
bash --login -i -c 'cd somdir; exec bash'
I was having the same problem, saw your post, and then found this answer:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\Open Cygwin Here...]
[HKEY_CLASSES_ROOT\Directory\shell\Open Cygwin Here...\command] @="\"C:\Program Files\Console2\Console.exe\" -t Bash -r \"/bin/xhere /bin/bash.exe '%L'\""
Found this solution at: http://www.e-texteditor.com/forum/viewtopic.php?p=8884
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With