rtx-cli 1.3.0

Polyglot runtime manager (asdf rust clone)
---
source: src/shell/fish.rs
expression: "Fish::default().activate(Path::new(\"/some/dir/rtx\"))"
---
fish_add_path -g /some/dir
function __rtx_env_eval --on-event fish_prompt --description 'Update rtx environment when changing directories';
    /some/dir/rtx hook-env -s fish | source;

    if test "$rtx_fish_mode" != "disable_arrow";
        function __rtx_cd_hook --on-variable PWD --description 'Update rtx environment when changing directories';
            if test "$rtx_fish_mode" = "eval_after_arrow";
                set -g __rtx_env_again 0;
            else;
                /some/dir/rtx hook-env -s fish | source;
            end;
        end;
    end;
end;

function __rtx_env_eval_2 --on-event fish_preexec --description 'Update rtx environment when changing directories';
    if set -q __rtx_env_again;
        set -e __rtx_env_again;
        /some/dir/rtx hook-env -s fish | source;
        echo;
    end;

    functions --erase __rtx_cd_hook;
end;