After migrating my Macbook Air M1 to my new Macbook Air M2 using the Migration Assistant, my zsh Terminal seems broken in a strange way.
The terminal is set to run the script
~/.zshrc on startup. This script was migrated from the old machine, where it worked flawlessly.
On the new machine, a new Terminal always opens with
[Process completed], and I'm not able to do anything in it.
So I opened
~/.zshrc in an editor and removed everything. Opening a terminal now results in
[Command not found: ~/.zshrc] [Could not create a new process and open a pseudo-tty.]
(Uh, what? An empty file counts as a "Command not found"?)
Then I added
echo "hello" to the file:
hello [Process completed]
But I get the problem even if the contents of the
~/.zshrc file are trivial.