I'm on Windows 10 and have WSL1 Ubuntu. On Windows Terminal, I have a profile for it called "Ubuntu". (For this question, assume I cannot change those tools - for instance, I can't upgrade to WSL2, I can't install a different terminal emulator.)
On WSL1 Ubuntu, I wrote a command in the .bashrc
so that, whenever I start this profile, it will automatically run that command in Ubuntu.
I would like to create a separate profile that goes to the SAME Ubuntu installation, but runs a DIFFERENT command on startup.
My first thought was to create a new profile (by duplicating the Ubuntu profile) and, somehow, get it to source a different .bashrc file with the other command.
I thought I can edit the settings.json file to modify the wsl.exe command that starts Ubuntu - but I have not found a way to pass a command for it to run in Ubuntu once it's been started up.
Is there any way to create separate Windows Terminal profiles for the same WSL1 Ubuntu installation that just run different commands at start-up, or source different bashrc files on startup?