You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: fish.rs
    path of file: ./repos/broot/src/shell_install
    
    the code of the file until where you have to start completion: //! The goal of this mod is to ensure the launcher shell function
//! is available for fish i.e. the `br` sh
    
pub fn install(si: &mut ShellInstall) -> Result<(), ShellInstallError> {
    let fish_dir = get_fish_dir();
    if !fish_dir.exists() {
        debug!("no fish config directory. Assuming fish isn't used.");
        return Ok(());
    }
    info!("fish seems to be installed");
    let script_path = get_script_path();
    si.write_script(&script_path, FISH_FUNC)?;
    let link_path = get_link_path();
    // creating the link may create the fish/conf.d directory
    si.create_link(&link_path, &script_path)?;
    si.done = true;
    Ok(())
}