diff --git a/src/tool.rs b/src/tool.rs index af43a918..8793257b 100644 --- a/src/tool.rs +++ b/src/tool.rs @@ -103,6 +103,12 @@ impl Tool { ) .map(|o| String::from_utf8_lossy(&o).contains("ziglang")) .unwrap_or_default() + || { + match path.file_name().map(OsStr::to_string_lossy) { + Some(fname) => fname.contains("zig"), + _ => false, + } + } } fn guess_family_from_stdout(