mirror of https://github.com/helix-editor/helix
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
211 B
Rust
9 lines
211 B
Rust
2 years ago
|
pub fn binary_exists(binary_name: &str) -> bool {
|
||
|
which::which(binary_name).is_ok()
|
||
|
}
|
||
|
|
||
|
#[cfg(not(windows))]
|
||
|
pub fn env_var_is_set(env_var_name: &str) -> bool {
|
||
|
std::env::var_os(env_var_name).is_some()
|
||
|
}
|