Configuring Console2 with Cygwin
When using Windows, Console2 does a great job of managing my console windows, but it’s not intuitive how to configure it with Cygwin (my console of choice). It’s not that hard to simply get Cygwin to open in Console2, but it can be tricky to get it open to a startup directory.
Here are the steps to get Console2 to open to a specific startup directory:
- Launch Console2
- Open settings through Edit > Settings
- Click tabs from the tree on the left
- Click the ‘Add’ button to add a new tab
- Set the title to ‘Cygwin’ (or another appropriate name)
- In the ‘Shell’ field put:
- Replace username with your login name, and the path with the path you want to use relative your home directory. This can also be used to start in other paths on the system.
- This launched cygwin with the command to change the path and then launches bash again so the console window will stay open.
- You don’t have to put anything in ‘Startup dir’
- You should be set to open Cygwin tabs to a specific directory in Console2.
C:\cygwin\bin\bash.exe --login -i -c "cd /cygdrive/c/Users/<username>/<path>/; exec /bin/bash" |
Feel free to do other customizations to the console, I like to make each console have a different color so it’s easy to tell which type of console I’m looking at very quickly.
Posted on November 21, 2011 at 1:12 am by Joe · Permalink
In: Configuration · Tagged with: console2, cygwin
In: Configuration · Tagged with: console2, cygwin
on April 16, 2012 at 9:27 am