[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#9647: dirtrack.el patch to support prefixed paths, e.g. tramp remote
bug#9647: dirtrack.el patch to support prefixed paths, e.g. tramp remote shells
Sun, 16 Oct 2011 09:47:12 -0700
On Sun, Oct 16, 2011 at 1:40 AM, Michael Albinus <address@hidden> wrote:
> However, I still don't know whether this shall be fixed in
> dirtrack.el. Maybe it would be better if Tramp could support.
yeah, i understand that instinct. i think dirtrack may be the more
appropriate place, though.
notably, if you look at the patch, it doesn't actually depend on tramp
at all. it uses shell-prefixed-directory-name and
comint-file-name-prefix, which are generic mechanisms in shell and
comint, which dirtrack already depends on.
> (set-variable 'dirtrack-list "[REGEX]")
> What do you use as "[REGEX]"? Shouldn't this be a list?
> Remote shells as implemented by Tramp do not provide any directory
> information in the prompt. By default, the prompt looks like this:
tramp does use the user's shell and dotfiles on the remote machine,
but still, good points, the instructions needed more details. i use
tcsh with this dirtrack-list:
(set-variable 'dirtrack-list '(":\\([^ :>]*\\)> *$" 1 nil))
try that, and then run tcsh on the remote machine and run this:
set prompt="%m:%~%# "
that gives you a prompt that looks like this: