I want to create a shortcut which starts Windows Terminal with Windows Subsystem for Linux (WSL) and exports the path to my arm-gcc compiler files. Looking over other posts on SO, I've gotten this in the target of the shortcut:
wt.exe wsl.exe ~ -d Ubuntu bash -c export PATH="/mnt/m/ARM/gcc-arm/bin:$PATH"
This, however, does not work as an instance of Windows Terminal starts up and then exits without providing me an error. Trying to do variations like
wt.exe wsl.exe ~ -d Ubuntu bash -export "PATH="/mnt/m/ARM/gcc-arm/bin:$PATH""
And so on did not help, I just get errors back. How would this be done?