This commit is contained in:
pika 2025-05-18 18:08:18 +02:00
parent 2f3be76879
commit 80a8909add

View file

@ -133,16 +133,20 @@
run cargo install --locked yazi-fm yazi-cli
}
yazi_setup() {
run ya pack -u || run ya pack -i
}
c_yazi() {
if [ -e "$HOME/.config/yazi/package.toml" ]; then
if command_exists ya; then
run ya pack -u || run ya pack -i
yazi_setup || echo_error "Yazi was not setup properly.."
else
if [ -e "$HOME/.cargo/env" ]; then
echo_info "Loadet $HOME/.cargo/env"
. "$HOME/.cargo/env"
run ya pack -u || run ya pack -i
yazi_setup || echo_error "Yazi was not setup properly.."
else
echo_error "Something went wrong when installing yazi.. ya is not available.."
fi