Description of the new feature/enhancement
There should be an option to check whether there is a profile that would match the command line of a console app launched when Terminal is set as default and use that profile.
This would be a nice alternative to using the conhost configuration (#9458) as some people might prefer to use their already defined profiles rather than what's defined in the registry or shortcuts.
Proposed technical implementation details (optional)
Some extra thought should be given to handling command line arguments in both the profile's commandLine and the launched app's command line. A sane compromise could be that a launched app's command line would only match commandLine with either the exact same arguments or none at all to make sure that cmd.exe doesn't get launched with a profile defined for some batch file.
Description of the new feature/enhancement
There should be an option to check whether there is a profile that would match the command line of a console app launched when Terminal is set as default and use that profile.
This would be a nice alternative to using the conhost configuration (#9458) as some people might prefer to use their already defined profiles rather than what's defined in the registry or shortcuts.
Proposed technical implementation details (optional)
Some extra thought should be given to handling command line arguments in both the profile's
commandLineand the launched app's command line. A sane compromise could be that a launched app's command line would only matchcommandLinewith either the exact same arguments or none at all to make sure thatcmd.exedoesn't get launched with a profile defined for some batch file.