diff options
author | Lincoln Atkinson <latkin@users.noreply.github.com> | 2017-07-17 15:01:13 -0700 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2017-07-17 18:01:13 -0400 |
commit | 354a5cad970453043fe25c2a184afc7808e235c2 (patch) | |
tree | d0ea5f9bbc957839f4d628050478383c0118b9f3 /src/args.rs | |
parent | 92e5fad27d54c1d06cf23ec7380a9fa9cda1574e (diff) |
Fix invisible file path text in PowerShell (#557)
change default path color on Windows
This avoids a conflict with a PowerShell configuration that causes text to be invisible.
Fixes #342
Diffstat (limited to 'src/args.rs')
-rw-r--r-- | src/args.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/args.rs b/src/args.rs index cd905b45..fb37c715 100644 --- a/src/args.rs +++ b/src/args.rs @@ -692,7 +692,10 @@ impl<'a> ArgMatches<'a> { fn color_specs(&self) -> Result<ColorSpecs> { // Start with a default set of color specs. let mut specs = vec![ + #[cfg(unix)] "path:fg:magenta".parse().unwrap(), + #[cfg(windows)] + "path:fg:cyan".parse().unwrap(), "line:fg:green".parse().unwrap(), "match:fg:red".parse().unwrap(), "match:style:bold".parse().unwrap(), |