From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ramestica@gmail.com Newsgroups: gmane.emacs.help Subject: Re: tramp and how to source remote environment Date: Tue, 17 Feb 2009 17:43:37 -0800 (PST) Organization: http://groups.google.com Message-ID: <8704ba36-37be-4a6e-adc7-82be9b3e330f@f3g2000yqf.googlegroups.com> References: <0d00b462-9d63-43d6-b54d-ea120d2fa50a@l39g2000yqn.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1234924853 17933 80.91.229.12 (18 Feb 2009 02:40:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Feb 2009 02:40:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 18 03:42:09 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LZcNx-00014k-Se for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Feb 2009 03:42:06 +0100 Original-Received: from localhost ([127.0.0.1]:55577 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZcMd-0008I4-M5 for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Feb 2009 21:40:43 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!news.glorb.com!postnews.google.com!f3g2000yqf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-NNTP-Posting-Host: 76.104.20.168 Original-X-Trace: posting.google.com 1234921418 683 127.0.0.1 (18 Feb 2009 01:43:38 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 18 Feb 2009 01:43:38 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f3g2000yqf.googlegroups.com; posting-host=76.104.20.168; posting-account=GyIV7QoAAACC7zm6nA92JhktCMy0igbg User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009012111 Red Hat/3.0.6-1.el5 Firefox/3.0.6, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:166862 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:62170 Archived-At: ooops, I'm just realizing that my environment (.bashrc) is actually sourced. What happens is that PATH is set to something unexpected which I suppose is a tramp default somehow: /bin:/usr/bin:/usr/sbin:/usr/local/bin That is, all seems to be working as described in the manual. I just need to find out why is that my PATH is ovrwritten by the content shown above. sorry for the noise, Rodrigo On Feb 17, 8:17=A0pm, ramest...@gmail.com wrote: > Hi, > > I use bash and, therefore, I have a rich .bashrc file that I share > among the few machines I work in. This rc file takes care of > identifying the machine and setting my environment accordingly. > > I'm trying to figure out whether is possible in tramp or not to always > source my .bashrc file before attempting any command in the remote > machine. Is that possible at all? > > I read the 'Remote shell setup hints' section in the manual, but it > does not seem to work for me. I have a .bash_profile file that sources > my .bashrc and I have no .profile in my home. > > Any hints on this? > > thanks, > =A0Rodrigo > > tramp 2.1.15 > emacs 23.0.60