lacy 0.2.0

Fast magical cd alternative for lacy terminal navigators
pub fn get_shell_config(shell: &str) {
    match shell {
        "zsh" => {
            println!(
                r#"
function y {{
    new_path=$(lacy prompt -- "$*")
    if [ -d "$new_path" ]; then
        cd "$new_path"
    else
        echo "Error: No matching directory found for '$*'"
    fi
}}
# Auto-completion for y function
function _y {{
    local dirs
    args="${{words[@]:1}}"
    dirs=$(lacy complete -- "$args")
    dirs=(${{(s: :)dirs}})
    compadd $dirs
}}
compdef _y y"#
            );
        }
        _ => {
            eprintln!("Error: Unsupported shell '{}'", shell);
        }
    }
}