
You should see this if looking at your settings.json as the "source": "" property on the profile. When starting up, Windows Terminal queries several "sources" for the shells that are installed, one of these being "". There are several types of Windows Terminal profiles:ĭynamically generated profiles: This is what you are likely seeing by default with the Ubuntu profile. 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? 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. My first thought was to create a new profile (by duplicating the Ubuntu profile) and, somehow, get it to source a different. I would like to create a separate profile that goes to the SAME Ubuntu installation, but runs a DIFFERENT command on startup. bashrc so that, whenever I start this profile, it will automatically run that command in Ubuntu. On WSL1 Ubuntu, I wrote a command in the.

(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 Windows Terminal, I have a profile for it called "Ubuntu".
