diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2019-03-28 19:43:26 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2019-03-28 19:43:26 -0400 |
commit | b30242bd400462a74e98bcd79ab5e69831590198 (patch) | |
tree | a0d0e9db47a87d0640567910d5f8361c5b94859a /tests.sh | |
parent | 40ddb23b103eb1d29d2aa0ae3e5bc6633bae9c93 (diff) | |
download | bfs-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-x | tests.sh | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 } |