* lisp/net/tramp.el (tramp-eshell-directory-change): Add it also to
`eshell-first-time-mode-hook'.
(eval-after-load "esh-util"
'(progn
- (tramp-eshell-directory-change)
+ (add-hook 'eshell-first-time-mode-hook
+ 'tramp-eshell-directory-change)
(add-hook 'eshell-directory-change-hook
'tramp-eshell-directory-change)
(add-hook 'tramp-unload-hook
(lambda ()
+ (remove-hook 'eshell-first-time-mode-hook
+ 'tramp-eshell-directory-change)
(remove-hook 'eshell-directory-change-hook
'tramp-eshell-directory-change)))))