标签: linux mailx
我使用mailx通过电子邮件发送彩色输出:
git diff | mailx -s "code diff output" usrname@srv.com
git diff的输出是彩色的,但收到的邮件是明白的。
答案 0 :(得分:0)
您需要使用
git diff --color=always | mailx -s "code diff output" usrname@srv.com
但是当你阅读它时会显示asci字符的颜色。所以管道给猫阅读:
mailx | cat