feat: better generic shell handling

This commit is contained in:
iff 2025-03-13 21:06:21 +01:00
parent 41d6b04ea5
commit 3a2ac2fa63
3 changed files with 14 additions and 8 deletions

View file

@ -6,6 +6,13 @@ use crate::evals::find_similar;
use itertools::Itertools;
pub fn get_path_files() -> Vec<String> {
let env = std::env::var("_PR_EXECUTABLES");
if let Ok(env) = env {
if !env.is_empty() {
return env.split(' ').map(|s| s.to_owned()).collect();
}
}
let path_env = path_env();
#[cfg(debug_assertions)]