whi 0.4.0

Stupid simple PATH management
Documentation
1
2
3
4
5
6
7
8
9
10
pub fn generate_init_script(shell: &str) -> Result<String, String> {
    match shell {
        "bash" | "zsh" => Ok(POSIX_INIT.to_string()),
        "fish" => Ok(FISH_INIT.to_string()),
        _ => Err(format!("Unsupported shell: {shell}")),
    }
}

const POSIX_INIT: &str = include_str!("posix_integration.sh");
const FISH_INIT: &str = include_str!("fish_integration.fish");