atty icon indicating copy to clipboard operation
atty copied to clipboard

Make Windows msys detection more robust

Open ChrisDenton opened this issue 2 years ago • 0 comments

This helps to avoid false positives from file paths that just so happen to include the magic strings.

It's done by detecting if the file is actually a pipe and that it starts with "msys-" or "cygwin-" (rather than being substrings anywhere in the file path). Tested on msys and git bash.

ChrisDenton avatar Jul 17 '22 13:07 ChrisDenton