Skip to content

Commit 1849673

Browse files
authored
Merge pull request #6923 from sylvestre/more-terms
uucore: add alacritty to the list of terminals that support colors
2 parents d6af68a + a644724 commit 1849673

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/uu/dircolors/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ Run the tests:
1515
cargo test --features "dircolors" --no-default-features
1616
```
1717

18-
Edit `/PATH_TO_COREUTILS/src/uu/dircolors/src/colors.rs` until the tests pass.
18+
Edit `/PATH_TO_COREUTILS/src/uu/dircolors/src/dircolors.rs` until the tests pass.

src/uucore/src/lib/features/colors.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
/// restrict following config to systems with matching environment variables.
1414
pub static TERMS: &[&str] = &[
1515
"Eterm",
16+
"alacritty*",
1617
"ansi",
1718
"*color*",
1819
"con[0-9]*x[0-9]*",
@@ -21,6 +22,7 @@ pub static TERMS: &[&str] = &[
2122
"cygwin",
2223
"*direct*",
2324
"dtterm",
25+
"foot",
2426
"gnome",
2527
"hurd",
2628
"jfbterm",

tests/fixtures/dircolors/internal.expected

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# restrict following config to systems with matching environment variables.
88
COLORTERM ?*
99
TERM Eterm
10+
TERM alacritty*
1011
TERM ansi
1112
TERM *color*
1213
TERM con[0-9]*x[0-9]*
@@ -15,6 +16,7 @@ TERM console
1516
TERM cygwin
1617
TERM *direct*
1718
TERM dtterm
19+
TERM foot
1820
TERM gnome
1921
TERM hurd
2022
TERM jfbterm

0 commit comments

Comments
 (0)