Mac 11.4
My current function opens a new terminal, then in the old terminal runs a C program.
foo() {
open -a Terminal -n; cd ~/desktop/c; ./target.exe
}
What I want it to do is to open a new terminal and run the C program inside the new terminal.
Is this possible to do with a Zsh function?