wip
This commit is contained in:
parent
bd77fdcc51
commit
76ac7b2ac7
1 changed files with 9 additions and 6 deletions
15
yazi.sh
15
yazi.sh
|
@ -131,13 +131,12 @@
|
||||||
fi
|
fi
|
||||||
|
|
||||||
run cargo install --locked yazi-fm yazi-cli
|
run cargo install --locked yazi-fm yazi-cli
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
c_yazi() {
|
c_yazi() {
|
||||||
if [ -e "$HOME/.config/yazi/package.toml" ]; then
|
if [ -e "$HOME/.config/yazi/package.toml" ]; then
|
||||||
if command_exists ya; then
|
if command_exists ya; then
|
||||||
run ya pack -i || run ya pack -u
|
run ya pack -u || run ya pack -i
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo_warning "There was no yazi config found.. "
|
echo_warning "There was no yazi config found.. "
|
||||||
|
@ -149,16 +148,20 @@
|
||||||
echo_warning "Executing script silently!"
|
echo_warning "Executing script silently!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if $arch; then
|
case "$distro" in
|
||||||
|
arch)
|
||||||
_install yazi
|
_install yazi
|
||||||
elif ! $opensuse; then
|
;;
|
||||||
|
debian | ubuntu | fedora)
|
||||||
if getDependencies; then
|
if getDependencies; then
|
||||||
i_yazi &&
|
i_yazi &&
|
||||||
c_yazi
|
c_yazi
|
||||||
fi
|
fi
|
||||||
else
|
;;
|
||||||
|
*)
|
||||||
echo_warning "$distro is not compatible with this script"
|
echo_warning "$distro is not compatible with this script"
|
||||||
fi
|
;;
|
||||||
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
if getImports; then
|
if getImports; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue