From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: customizing dircolors doesn't take effect in emacs shell Date: Mon, 9 Jan 2012 21:56:14 +0100 Message-ID: <14CA6C8F-B82D-4FD4-B6E9-4344B31B5E2F@web.de> References: <3CD4DC10-DEDB-4DB7-ADEB-38166A9E88C0@web.de> <9358B31E-D0DF-478E-A0BF-3B7721A43F81@web.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1326142590 7135 80.91.229.12 (9 Jan 2012 20:56:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 9 Jan 2012 20:56:30 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Yuan Luo Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 09 21:56:24 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 1RkMGU-0005tb-TE for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Jan 2012 21:56:23 +0100 Original-Received: from localhost ([::1]:46662 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkMGU-0002HN-Di for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Jan 2012 15:56:22 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:33272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkMGQ-0002H6-49 for help-gnu-emacs@gnu.org; Mon, 09 Jan 2012 15:56:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RkMGO-0000zq-Lv for help-gnu-emacs@gnu.org; Mon, 09 Jan 2012 15:56:17 -0500 Original-Received: from fmmailgate04.web.de ([217.72.192.242]:54087) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkMGO-0000zm-DY for help-gnu-emacs@gnu.org; Mon, 09 Jan 2012 15:56:16 -0500 Original-Received: from moweb001.kundenserver.de (moweb001.kundenserver.de [172.19.20.114]) by fmmailgate04.web.de (Postfix) with ESMTP id BB04770A11CB for ; Mon, 9 Jan 2012 21:56:14 +0100 (CET) Original-Received: from peter-dyballas-macbook-pro.fritz.box ([88.153.242.186]) by smtp.web.de (mrweb002) with ESMTPA (Nemesis) id 0LhvUI-1SWMWa24Vm-00nNwF; Mon, 09 Jan 2012 21:56:14 +0100 In-Reply-To: X-Mailer: Apple Mail (2.1084) X-Provags-ID: V02:K0:/V12pBNO10r7pRQNKpgGB7nHi3doyudqk/Ax2cPlUZa 3Utf7BPHAhl1zh1TARUFHUVXl7d/mbq/bhSnk+gOGvtm4qmvMO ul6CpPeZ06MCQ+DujlwqvvVl45msEO8ourcOw6lknPSz9+NlZD XKqHXqXs6z3Hvsdpd9Oik5u9CPtE2vxnvJjYuNP+TfoR7QSkRw xXwFX5i9bzOXSsIRy2vzg== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 217.72.192.242 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:83428 Archived-At: Am 9.1.2012 um 17:43 schrieb Yuan Luo: > All aliases in ~/.bashrc are listed in emacs shells. > I already had have ansi-color-for-comint-mode-on set. > execution of ls traces to /bin/ls Does it work when you use /bin/ls --color=3Dauto /bin /bin/ls --color /bin manually and directly? My manual page explains: With --color=3Dauto, ls emits color codes only when standard = output is connected to a terminal. The LS_COLORS environment variable = can change the settings. Use the dircolors command to set it. There is a chance that LS_COLORS hinders ls, it's also possible that in = *shell* buffer standard output is not connected to a terminal. The = latter seems to be true for me on Mac OS X (10.6.8, Snow Leopard). So by = omitting the "=3Dauto" should make your aliases work. -- Greetings Pete Bake pizza not war!