In my local shell, completion-at-point
after cd
returns a list of directories. However, when I ssh into a remote, Emacs thinks I'm still in my local home directory. How can I configure Emacs to give me remote directory autocompletion?
1 Answer
Try this
Open a remote directory in
dired
usingtramp
.C-x d
/ssh:username@hostname:/path
returnStart a remote shell.
M-x
shell
-
Is there a way to make something like this work with Emacs
term
or preferablymulti-term
Commented Feb 15, 2016 at 13:02
M-x shell
from a local directory and then doingssh
command in that buffer?C-x d
/ssh:username@hostname:/directory-path
and then usingM-x shell
to open a remote shell?global-projectile-mode
and the situation improved significantly!