I have run
Also, when I use
/bin/ls --color=always (or
/bin/ls --color=auto) in a regular terminal, I do see colors in the output.
It's only within Emacs'
shell-mode that these commands fail to produced colorized output. (The variable
LS_COLORS is set to the empty string in all cases.)
grep --color=always does produce colorized output, even in
shell-mode. The echoed commands are are also colorized.
(NB: in the illustration above I passed the options
-1aF --color=always to
/bin/ls, but I get the same "monochrome" output with no flags, or with any combination of flags, and with any argument for the
Is there anything else I need to do to get
/bin/ls to produce colorized output in
;; ~/.emacs (add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on) (require 'comint) (set-face-attribute 'comint-highlight-prompt nil :inherit nil)
# ~/.zshrc LS_COLORS=''; export LS_COLORS PS1=$'%# '