[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: default remote shell in tramp

From: Michael Albinus
Subject: Re: default remote shell in tramp
Date: Thu, 17 Jun 2010 18:38:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Vinh Nguyen <address@hidden> writes:

> Dear list,


> First, my goal is to have access to my PATH that I modify in my
> .bashrc file on remote machines.  However, when I invoke "!" or "&" in
> dired, the commands are not found:
> /bin/sh: MYCOMMAND: not found
> I figure this is because bash is not used by tramp even though bash is
> the default login shell on my remote systems.  Why isn't tramp using
> it?  I understand that one way around this is to set the tramp path.
> However, I don't want to go this route since different machines have
> different PATHs.  Is there a way to set tramp to use the remote login
> shell?

Tramp ignores your PATH settings by default. If you want to enable them,
you must add to your .emacs

(add-to-list 'tramp-remote-path 'tramp-own-remote-path)

See (info "(tramp) Remote Programs")

This is available since Tramp 2.1.16.

> Thanks.
> Vinh

Best regards, Michael.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]