summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2019-03-28 19:43:26 -0400
committerTavian Barnes <tavianator@tavianator.com>2019-03-28 19:43:26 -0400
commitb30242bd400462a74e98bcd79ab5e69831590198 (patch)
treea0d0e9db47a87d0640567910d5f8361c5b94859a /tests.sh
parent40ddb23b103eb1d29d2aa0ae3e5bc6633bae9c93 (diff)
downloadbfs-b30242bd400462a74e98bcd79ab5e69831590198.tar.xz
color: Implement ln=target
With ln=target in LS_COLORS, links should be colored according to their target's stat() info, not their own.
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh5
1 files changed, 5 insertions, 0 deletions
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
}