0

The boxes I'm working with are locked down and only have the SSH port (22) open, so I can't use directory tracking via FTP. But directory tracking is really handy.

There has to be a way. Does anyone know of a method or library that will do dirtrack-mode via SSH?

2
  • I've never used shell over TRAMP (as it's of little use for me, I just prefer to use a proper terminal outside of Emacs). Have you tried starting shell from a buffer that's pointing to a remote file? I recall the ! command in dired doing the right thing and executing commands on the remote machine. – user12563 Feb 22 '19 at 20:48
  • Yeah, I was able to get it to at least set the default-directory on login by adding this: (setq default-directory (concat "/ssh:" ssh-remote-user "@" ssh-host ":~")) to my custom wrapper arround the ssh command. But it doesn't update when I change directories. This is much better than nothing, I'm just surprised this doesn't exist. – Jeff Gran Feb 22 '19 at 21:48
1

There is shell-dirtrack-mode which is said to work also on remote shell buffers via Tramp.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.