diff --git a/yazi.sh b/yazi.sh index 32f59d4..6a85ce6 100644 --- a/yazi.sh +++ b/yazi.sh @@ -138,9 +138,17 @@ if command_exists ya; then run ya pack -u || run ya pack -i else - echo_error "Something went wrong when installing yazi.. ya is not available.." + if [ -e "$HOME/.cargo/env" ]; then + echo_info "Loadet $HOME/.cargo/env" + . "$HOME/.cargo/env" + + run ya pack -u || run ya pack -i + else + echo_error "Something went wrong when installing yazi.. ya is not available.." + fi fi else + echo_warning "There was no yazi config found.. " fi }