From 4fd62caa9acc437534c41bbb7d3fc9d53e915005 Mon Sep 17 00:00:00 2001 From: Prasad Joshi Date: Sun, 16 Sep 2012 08:59:42 +0530 Subject: [PATCH] bash_profile: set ls color alias to auto ls --color emits the color code irrespective of whether it is being attached to terminal or not. Which might result in color codes being added to file upon redirection. auto option with ls --color emits the color codes only the output is attached to terminal, otherwise the colors are turned off. Fixes #8993. Signed-off-by: Ryan Leavengood --- data/etc/profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/etc/profile b/data/etc/profile index a6548080c1..e61bbc89fa 100644 --- a/data/etc/profile +++ b/data/etc/profile @@ -24,7 +24,7 @@ export LC_COLLATE=$LC_MESSAGES export LC_CTYPE=$LC_MESSAGES export LC_MONETARY=$LC_NUMERIC -alias ls="ls --color" +alias ls="ls --color=auto" alias ll="ls -lA" alias la="ls -A" alias m="more"