From b30242bd400462a74e98bcd79ab5e69831590198 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 28 Mar 2019 19:43:26 -0400 Subject: color: Implement ln=target With ln=target in LS_COLORS, links should be colored according to their target's stat() info, not their own. --- tests.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests.sh') diff --git a/tests.sh b/tests.sh index 187daff..3b6c030 100755 --- a/tests.sh +++ b/tests.sh @@ -628,6 +628,7 @@ bfs_tests=( test_color_L test_color_rs_lc_rc_ec test_color_escapes + test_color_ln_target test_color_mh test_color_mh0 test_color_or @@ -1857,6 +1858,10 @@ function test_color_escapes() { LS_COLORS="lc=\e[:rc=\x6d\::ec=^[[\x6D\0:" bfs_diff rainbow -color } +function test_color_ln_target() { + LS_COLORS="ln=target:or=01;31:mi=01;33:" bfs_diff rainbow -color +} + function test_color_mh() { LS_COLORS="mh=01:" bfs_diff rainbow -color } -- cgit v1.2.3