Tab Completion In Emacs shell-mode SSH Sessions

后端 未结 2 485
鱼传尺愫
鱼传尺愫 2021-02-08 07:48

My current use pattern of emacs results in my having several shell-mode buffers open, each running an ssh session. I am running into an issue with this, though - when I try to

相关标签:
2条回答
  • 2021-02-08 08:04

    Emacs can't track the current directory (default-directory) when ssh-ing to other machines.

    You could set default-directory to a tramp file-name like /ssh:YOURHOST:/home/dir" on your current shell-buffer manually.

    I start shell-sessions on a remote machine mostly via tramp-bookmarks/shell. Tramp sets default-directory automatically. But there is a bug in directory tracking on remote files, which is fixed in trunk (unreleased).

    http://comments.gmane.org/gmane.emacs.bugs/39082

    0 讨论(0)
  • 2021-02-08 08:26

    Instead of running M-x shell and running ssh to the remote computer, visit a directory on the remote computer (using Tramp) and then run M-x shell in that Dired buffer.

    0 讨论(0)
提交回复
热议问题