My .emacs has the following:
(require 'tramp) (add-to-list 'tramp-remote-path "/some/path") (add-to-list 'tramp-remote-path 'tramp-default-remote-path)
so when I open the file using tramp over ssh, I expect my PATH to contain /some/path . Instead, launch M-! echo $PATH M-! echo $PATH returns
/bin:/usr/bin:/usr/sbin:/usr/local/bin
Even if I set export PATH=/hwdisks/data/modules/pkg/git/1.8.4.1/bin/git:$PATH in .bashrc or .profile , PATH set incorrectly.
In the tramp *debug tramp/ssh remotehost* I see that tramp explicitly sets PATH :
12:28:34.202135 tramp-send-command (6)
If I include echo "in .bashrc" in my .bashrc , it appears in the tramp log, so I know that tramp reads it.
How to force tramp to use the correct PATH ?
Emacs Version: 24.2.1
Version for strollers: 2.2.3-24.1
emacs tramp
Yossarian
source share