This commit is contained in:
pika 2025-05-03 19:27:49 +02:00
parent 9581147942
commit c673f4fa86

View file

@ -196,20 +196,6 @@ __validate__() {
# fi
}
instZellij() {
if ! command_exists rustup; then
_install rustup
rustup default stable
fi
if command_exists cargo; then
rustup update
sleep 1
cargo install --locked zellij
fi
}
__dep__() {
_depss=(
"stow"
@ -232,32 +218,6 @@ __dep__() {
fi
done
if ! command_exists zellij; then
if ! instZellij; then
echo_error "Something went wrong.. Please look for the installation yourself!"
echo "Documentation: https://zellij.dev/documentation/installation.html#third-party-repositories"
sleep 2
echo_error "Trying to install with binary approach.."
echo ".."
sleep 0.3
echo ".."
sleep 0.3
echo ".."
sleep 0.3
echo ".."
sleep 0.3
echo ".."
local buildDir="$(mktemp -d)"
cd $buildDir || echo_error "Something went wrong!" && return 1
wget https://github.com/zellij-org/zellij/releases/download/v0.42.2/zellij-x86_64-unknown-linux-musl.tar.gz
tar -xfz zellij*.tar.gz
$_sudo cp zellij /bin/zellij
fi
fi
}
pkg_optional() {
@ -276,6 +236,10 @@ pkg_optional() {
_install "$_o_"
fi
done
if ! command_exists zellij; then
curl -fsSL https://git.k4li.de/scripts/installs/raw/branch/main/zellij.sh | bash
fi
;;
*)
echo default