Recently got an M1 and I'm trying to wrap my head around the default shell zsh.
First thing I tried was the usual line as of with bash:
git config --global core.editor "code -w"
This line used to work in the past like charm but not anymore, now I get this error over and over.
hint: Waiting for your editor to close the file... code -w: code: command not found
error: There was a problem with the editor 'code -w'.
Then I tried to add the line export EDITOR="code -w" to ~/.zshrc and even follow the steps to install in vscode from shell command: Install 'code' in command PATH but it obviously install all dependencies in bash not zsh.
I've searched everywhere how to configure vsc on the new M1 model and I have not found anything related to it.
If anyone can shed some light on how to do it that would be highly appreciated. It would also be nice to have VSC as my default text editor in general, not only for Git but for everything.
