Emacs terminal (from multi-term) can automatically detect a folder path. So performing
C-x C-f from a local directory, automatically provides the path to that directory to open any relevant files.
My questions is how to do the same for a remote directory that was accessed through ssh from emacs terminal? Since, if I perform
C-x C-f, it only tries to open the local directory from which ssh connection was launched. How to automatically pass information to tramp to help open the files in the remote directory?
I'm looking for something similar to this question, but for
shell does not seem to recognize the local alias and other shortcuts that are stored in
~/.bashrc of the remote server.