windows 上 Emacs shell 怎么配置彩色输出?

如何让 emacs 里的 shell 输出显示颜色,git 的输出全是清一色,严重影响。emacs中使用shell的体验。 环境win10 power-shell 7.

image

看这里

1 个赞

多谢,这个配置只能修改 indicator 显示。对于shell命令输出有没有办法?比如 git diff / git log --one-line …

我查了半天 有个 xterm-color 包。但是配不出效果。

你说的这些建议放在eshell-visual-commands里,还有一个 eshell-visual-subcommands可供配置。这样 git diff 就会另用一个 buffer 显示了