Repository: sharkdp/fd (language: rust)

Issue:
fd interprets LS_COLORS quite differently
I am on ubuntu 18.04 and my `fd` is 7.2.0. I customize LS_COLORS in my bashrc, e.g., `export LS_COLORS=$LS_COLORS:"*.pdf=06;35"`, then I noticed `fd` displays quite different color from the builtin `ls` or `exa` commands. `exa` gives identical color to `ls`, which is the expected behavior. how do I make `fd` to behave as `ls` and `exa`? I observed this discrepancy on multiple terminals. I checked history issues on LS_COLORS but didn't find a solution for my case. thanks.

see screenshot below for effects.
![image](https://user-images.githubusercontent.com/321429/78075994-6bbcaf00-735a-11ea-8d01-b7fc5804a515.png)


Discussion / hints:

Fix patch:
diff --git a/Cargo.lock b/Cargo.lock
index f6b94b7a1..976207d0d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -126,7 +126,7 @@ dependencies = [
  "jemallocator 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
  "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
  "libc 0.2.68 (registry+https://github.com/rust-lang/crates.io-index)",
- "lscolors 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)",
+ "lscolors 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
  "num_cpus 1.12.0 (registry+https://github.com/rust-lang/crates.io-index)",
  "regex 1.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
  "regex-syntax 0.6.17 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -251,7 +251,7 @@ dependencies = [
 
 [[package]]
 name = "lscolors"
-version = "0.6.0"
+version = "0.7.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 dependencies = [
  "ansi_term 0.12.1 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -495,7 +495,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
 "checksum lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
 "checksum libc 0.2.68 (registry+https://github.com/rust-lang/crates.io-index)" = "dea0c0405123bba743ee3f91f49b1c7cfb684eef0da0a50110f758ccf24cdff0"
 "checksum log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)" = "14b6052be84e6b71ab17edffc2eeabf5c2c3ae1fdb464aae35ac50c67a44e1f7"
-"checksum lscolors 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ea3b3414b2d015c4fd689815f2551797f3c2296bb241dd709c7da233ec7cba4b"
+"checksum lscolors 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1f77452267149eac960ded529fe5f5460ddf792845a1d71b5d0cfcee5642e47e"
 "checksum maybe-uninit 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00"
 "checksum memchr 2.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "3728d817d99e5ac407411fa471ff9800a778d88a24685968b36824eaf4bee400"
 "checksum nix 0.17.0 (registry+https://github.com/rust-lang/crates.io-index)" = "50e4785f2c3b7589a0d0c1dd60285e1188adac4006e8abd6dd578e1567027363"
diff --git a/Cargo.toml b/Cargo.toml
index bdba567fc..1f88c7462 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -42,7 +42,7 @@ regex = "1.0.0"
 regex-syntax = "0.6"
 ctrlc = "3.1"
 humantime = "2.0"
-lscolors = "0.6"
+lscolors = "0.7"
 globset = "0.4"
 
 [dependencies.clap]


Test patch: