wip
This commit is contained in:
parent
9581147942
commit
c673f4fa86
1 changed files with 4 additions and 40 deletions
44
install.sh
44
install.sh
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue