I am working on a remote machine from my command line using ssh. I want to be able to open files in VScode from this ssh'd terminal using the regular "code file.txt" used when opening VScode in my local machine, or when using the VScode integrated terminal.
I have found several answers but none of them work (Is it possible to use the "code" command in SSH'ed terminal to open VS Code on local machine with SSH extension?). After trying several solutions from this answers I still get
-bash: code: command not found
or
-bash: /bin/code: No such file or directory
My local machine is a Mac with Zsh, and the remote is linux using bash.
Thanks for any help :)