File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed
Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,16 @@ dircolors -b > /PATH_TO_COREUTILS/tests/fixtures/dircolors/bash_def.expected
99dircolors -c > /PATH_TO_COREUTILS/tests/fixtures/dircolors/csh_def.expected
1010```
1111
12+ Apply the patches to include more terminals that support colors:
13+
14+ ``` shell
15+ git apply /PATH_TO_COREUTILS/src/uu/dircolors/alacritty-supports-colors.patch
16+ ```
17+
1218Run the tests:
1319
1420``` shell
1521cargo test --features " dircolors" --no-default-features
1622```
1723
18- Edit ` /PATH_TO_COREUTILS/src/uu/dircolors/src/colors .rs ` until the tests pass.
24+ Edit ` /PATH_TO_COREUTILS/src/uu/dircolors/src/dircolors .rs ` until the tests pass.
Original file line number Diff line number Diff line change 1+ diff --git a/tests/fixtures/dircolors/internal.expected b/tests/fixtures/dircolors/internal.expected
2+ index e151973f2..01dae4273 100644
3+ --- a/tests/fixtures/dircolors/internal.expected
4+ +++ b/tests/fixtures/dircolors/internal.expected
5+ @@ -7,6 +7,7 @@
6+ # restrict following config to systems with matching environment variables.
7+ COLORTERM ?*
8+ TERM Eterm
9+ + TERM alacritty*
10+ TERM ansi
11+ TERM *color*
12+ TERM con[0-9]*x[0-9]*
Original file line number Diff line number Diff line change 77# restrict following config to systems with matching environment variables.
88COLORTERM ?*
99TERM Eterm
10+ TERM alacritty*
1011TERM ansi
1112TERM *color*
1213TERM con[0-9]*x[0-9]*
You can’t perform that action at this time.
0 commit comments