all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Dyballa <Peter_Dyballa@web.de>
To: Yuan Luo <yuan.hypnos.luo@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: customizing dircolors doesn't take effect in emacs shell
Date: Mon, 9 Jan 2012 21:56:14 +0100	[thread overview]
Message-ID: <14CA6C8F-B82D-4FD4-B6E9-4344B31B5E2F@web.de> (raw)
In-Reply-To: <CAMY509k75okqF4LG+KdR9zjGfwCKf+WaQpGimy7EoBX2h3ZGRA@mail.gmail.com>


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=auto /bin
	/bin/ls --color /bin

manually and directly?

My manual page explains:

	With --color=auto, 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 "=auto" should make your aliases work.

--
Greetings

  Pete

Bake pizza not war!




  parent reply	other threads:[~2012-01-09 20:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-07 21:28 customizing dircolors doesn't take effect in emacs shell Yuan Luo
2012-01-08  0:12 ` Peter Dyballa
2012-01-08  0:36   ` Yuan Luo
2012-01-08 10:50     ` Peter Dyballa
2012-01-09  1:05       ` Yuan Luo
2012-01-09  9:53         ` Peter Dyballa
2012-01-09 16:43           ` Yuan Luo
2012-01-09 16:48             ` Yuan Luo
2012-01-09 20:56             ` Peter Dyballa [this message]
2012-01-15 22:34               ` Yuan Luo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=14CA6C8F-B82D-4FD4-B6E9-4344B31B5E2F@web.de \
    --to=peter_dyballa@web.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=yuan.hypnos.luo@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.