From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wang Lei Newsgroups: gmane.emacs.help Subject: Re: How to make emacs to run my ~/.bash_profile Date: Sat, 19 Sep 2009 19:49:28 +0800 Message-ID: References: <5ff1d48c0909181624w301d5c0dh1f33fdd19dea02d1@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1253361046 25215 80.91.229.12 (19 Sep 2009 11:50:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Sep 2009 11:50:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 19 13:50:39 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 1MoySc-00053P-8X for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Sep 2009 13:50:39 +0200 Original-Received: from localhost ([127.0.0.1]:38609 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MoySb-0006g5-Pi for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Sep 2009 07:50:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MoyRc-0006UZ-Fv for help-gnu-emacs@gnu.org; Sat, 19 Sep 2009 07:49:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MoyRW-0006TA-Pd for help-gnu-emacs@gnu.org; Sat, 19 Sep 2009 07:49:35 -0400 Original-Received: from [199.232.76.173] (port=56817 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MoyRW-0006T2-Ev for help-gnu-emacs@gnu.org; Sat, 19 Sep 2009 07:49:30 -0400 Original-Received: from mail-yw0-f177.google.com ([209.85.211.177]:33231) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MoyRW-00062g-4Y for help-gnu-emacs@gnu.org; Sat, 19 Sep 2009 07:49:30 -0400 Original-Received: by ywh7 with SMTP id 7so2370280ywh.24 for ; Sat, 19 Sep 2009 04:49:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=hnsgQp+7d0sVXPhb2KBnQcroX38RcMGKaZs7+xtsrh8=; b=RQrlUtMeyzWVYzsIhsVWPfSoFcheYRMJvEMGVfRDBhTyw1ySBrsKfoRt34ml5J1ues ajKIs5v4nV7qCgLMOwWMg51IMTCbd1ZY9VBTY1yl9TwzbGFb+QnBqKywI1WeVALW9lLe Z6Wz5l9dDXjzXK78jBIyChqUBybTVZHj1NqJk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=hT89in4/OLkYQHTyM0TrFpR+nFm+10cmtjt8Qcs/zqC0jKirpzektscgoUcwsMsSzs eq/TW6VA9NEbIEUd+bRcx1XaUoQPp3XqlBWggPfer5Tvu0InmxEemBFBbGRopVC9/ve+ D5imzK3B0/0l2p5PV0DCBieghDynYpcEzuVMs= Original-Received: by 10.150.70.1 with SMTP id s1mr4998034yba.113.1253360968546; Sat, 19 Sep 2009 04:49:28 -0700 (PDT) In-Reply-To: <5ff1d48c0909181624w301d5c0dh1f33fdd19dea02d1@mail.gmail.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:68303 Archived-At: I think .bash_profile is only executed once, just after login. .bashrc is the actual executed file when starting a shell. On 9/19/09, hap 497 wrote: > Hi, > > I often start a shell in emacs using 'M-shell'. But what i find out it > emacs does not execute my ~/.bash_profile. > Therefore my alias does not work in emacs shell. > > Can you please tell me how can I make emacs run my ~/.bash_profile > whenever I do a 'M-shell'? > > Thank you. > > > -- Regards, Lei