From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuan Luo Newsgroups: gmane.emacs.help Subject: Re: customizing dircolors doesn't take effect in emacs shell Date: Sat, 7 Jan 2012 19:36:00 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=000e0ce0ce485d1b9c04b5f9772b X-Trace: dough.gmane.org 1325982973 22067 80.91.229.12 (8 Jan 2012 00:36:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 8 Jan 2012 00:36:13 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Peter Dyballa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 08 01:36:09 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rjgk4-0007b0-S7 for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Jan 2012 01:36:09 +0100 Original-Received: from localhost ([::1]:38424 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rjgk4-0002yl-4N for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Jan 2012 19:36:08 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:43821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rjgjz-0002yd-5D for help-gnu-emacs@gnu.org; Sat, 07 Jan 2012 19:36:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rjgjy-0007UI-7A for help-gnu-emacs@gnu.org; Sat, 07 Jan 2012 19:36:03 -0500 Original-Received: from mail-bk0-f41.google.com ([209.85.214.41]:33340) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rjgjx-0007U9-Uk for help-gnu-emacs@gnu.org; Sat, 07 Jan 2012 19:36:02 -0500 Original-Received: by bkaq10 with SMTP id q10so1006050bka.0 for ; Sat, 07 Jan 2012 16:36:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=B0VTshuVsTiqH2tuwzGqGFZcpUcC7/60XBMdG5rhTGs=; b=aOuXfnlo8iRTvbmN4GMYUPxoMvpbI+qPtYq9we0peE2CzqlvCf+/QoQ8X+EeaOslS3 pBWCkGHj4MUaJZyEoeIjOg7TDtwEXF18UejZpddnZz17IQnIeeYV1uiY5RVCwOJnodLG XMu5+Sy0iOZdkg3xkY7w8AAAGQbzBuNBovxxY= Original-Received: by 10.205.127.2 with SMTP id gy2mr4782775bkc.87.1325982960917; Sat, 07 Jan 2012 16:36:00 -0800 (PST) Original-Received: by 10.205.83.135 with HTTP; Sat, 7 Jan 2012 16:36:00 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.214.41 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83407 Archived-At: --000e0ce0ce485d1b9c04b5f9772b Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi Pete, Thanks for your quick reply, I linked ~/.emacs_bash to ~/.bashrc but the default color is still not changed. I read more about ~/.emacs_bash, it seems to me emacs sends the content from this file to the interactive shell upon starting. However, if I directly type "dircolors -b ~/.dircolors" in emacs interactive shell, I got the following result: LS_COLORS=3D''; export LS_COLORS where as the same command typed in a regular system shell would yield the desired LS_COLORS. What could be the problem here? Thanks, Yuan On Sat, Jan 7, 2012 at 7:12 PM, Peter Dyballa wrote: > > Am 7.1.2012 um 22:28 schrieb Yuan Luo: > > > This happens in emacs23, what am I missing? > > Put the useful shell aliases also in ~/.emacs_bash =96 this file is read = in > by the bash running in a *shell* buffer. (~/.emacs_bash can also be linke= d > with ~/.bashrc. Maybe it's possible to customise the bash that it reads i= n > ~/.bashrc.) > > -- > Greetings > > Pete > > The future will be much better tomorrow. > =96 George W. Bush > > --000e0ce0ce485d1b9c04b5f9772b Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi Pete,
Thanks for your quick reply, I linked ~/.emacs_bash to ~/.bashr= c but the default color is still not changed. I read more about ~/.emacs_ba= sh, it seems to me emacs sends the content from this file to the interactiv= e shell upon starting. However, if I directly type "dircolors -b ~/.di= rcolors" in emacs interactive shell, I got the following result:

LS_COLORS=3D'';
export LS_COLORS

where as the same co= mmand typed in a regular system shell would yield the desired LS_COLORS.
What could be the problem here?
Thanks,
Yuan

On Sat, Jan 7, 2012 at 7:12 PM, Peter Dyballa <Peter_Dyballa@web.de> wrote:=

Am 7.1.2012 um 22:28 schrieb Yuan Luo:

> This happens in emacs23, what am I missing?

Put the useful shell aliases also in ~/.emacs_bash =96 this file is r= ead in by the bash running in a *shell* buffer. (~/.emacs_bash can also be = linked with ~/.bashrc. Maybe it's possible to customise the bash that i= t reads in ~/.bashrc.)

--
Greetings

=A0Pete

The future will be much better tomorrow.
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=96 George = W. Bush


--000e0ce0ce485d1b9c04b5f9772b--