mcfly 0.6.0

McFly replaces your default ctrl-r shell history search with an intelligent search engine that takes into account your working directory and the context of recently executed commands. McFly's suggestions are prioritized in real time with a small neural network.
Documentation
use super::settings::InitMode;

pub struct Init {}

impl Init {
    pub fn new(init_mode: &InitMode) -> Self {
        match init_mode {
            InitMode::Bash => {
                Init::init_bash();
            }
            InitMode::Zsh => {
                Init::init_zsh();
            }
            InitMode::Fish => {
                Init::init_fish();
            }
        }
        Self {}
    }
    pub fn init_bash() {
        let script = include_str!("../mcfly.bash");
        print!("{}", script);
    }
    pub fn init_zsh() {
        let script = include_str!("../mcfly.zsh");
        print!("{}", script);
    }
    pub fn init_fish() {
        let script = include_str!("../mcfly.fish");
        print!("{}", script);
    }
}