This commit is contained in:
pika 2025-05-18 17:48:50 +02:00
parent 623cdc8157
commit 2f3be76879

View file

@ -136,11 +136,19 @@
c_yazi() {
if [ -e "$HOME/.config/yazi/package.toml" ]; then
if command_exists ya; then
run ya pack -u || run ya pack -i
else
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
}