use std::{fs, path::Path};
pub fn detect_wsl() -> bool {
std::env::var("WSL_DISTRO_NAME").is_ok()
|| std::env::var("WSLENV").is_ok()
|| (Path::new("/proc/version").exists()
&& fs::read_to_string("/proc/version")
.unwrap_or_default()
.to_lowercase()
.contains("microsoft"))
}