Firstly, my apologies for possibly incorrect terminology. I'm coming at this from a windows background and have only Windows and DOS knowledge with which to express my needs.
Background
I am using Console2 to run Git Bash in 2 different tabs.
These tabs are setup to start in different working directories so as to default to working against 2 different repositories.
I have created a bunch of aliases to simplify the way I use GIT. These currently reside in my .bash_profile in my user folder.
The .bash_profile appears to be the linux equivalent of an old DOS autoexec.bat file. As such my aliases are setup for any tab which launches the git sh.exe.
I have been told that if I put the hg.exe (mercurial) on the path, then I would be able to use both hg and Git In this way. This proved to be correct.
What are my goals
I would like to be able to configure different tabs to work with different aliases.
In this specific case, I'd like to be able to setup an HG tab which still runs Git Bash (sh.exe), but which initializes a different set of aliases.
I believe I need to
- Create a different "bat file" for each set of aliases.
- Configure Console2 to use different "bat files" as autoexec for different tabs.
The Question
How do I tweak a setup Console2 tab (that currently launches sh.exe) so that it passes the name of a "command" file to run on startup?