From dcf2de56444a76aff007c2191dd261c52ba7335e Mon Sep 17 00:00:00 2001
From: Prasad Joshi <prasadjoshi.linux@gmail.com>
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 the https://dev.haiku-os.org/ticket/8993
Signed-off-by: Prasad Joshi <prasadjoshi.linux@gmail.com>
---
data/etc/profile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/data/etc/profile b/data/etc/profile
index a654808..e61bbc8 100644
a
|
b
|
export LC_COLLATE=$LC_MESSAGES
|
24 | 24 | export LC_CTYPE=$LC_MESSAGES |
25 | 25 | export LC_MONETARY=$LC_NUMERIC |
26 | 26 | |
27 | | alias ls="ls --color" |
| 27 | alias ls="ls --color=auto" |
28 | 28 | alias ll="ls -lA" |
29 | 29 | alias la="ls -A" |
30 | 30 | alias m="more" |