34 lines
1.2 KiB
Bash
Executable file
34 lines
1.2 KiB
Bash
Executable file
#!/bin/bash
|
|
if [ ! -f "/sbin/sudo" ]; then
|
|
echo ":: Error: \"/sbin/sudo\" not found, please install sudo."
|
|
exit 1
|
|
fi
|
|
|
|
echo ":: Detecting distribution"
|
|
if [ -f "/etc/os-release" ]; then
|
|
source /etc/os-release
|
|
fi
|
|
case "$ID" in
|
|
"arch"|"archarm")
|
|
echo ":: Detected ${PRETTY_NAME}, installing packages automatically"
|
|
if [ ! -f "/sbin/paru" ]; then
|
|
echo ":: Error: \"/sbin/paru\" not found, please install paru."
|
|
exit 1
|
|
fi
|
|
paru --removemake --batchinstall --sudoloop --mflags "--ignorearch" -Syu --needed bash ncurses nano rustup bat moar fireplace fortune-mod cowsay ytfzf yt-dlp-git tar zstd bzip unrar unzip 7-zip binutils
|
|
rustup default nightly
|
|
rustup update
|
|
cargo install eza
|
|
curl -s "https://get.sdkman.io" | bash
|
|
export SDKMAN_DIR="$HOME/.sdkman"
|
|
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
|
|
sdk install java 17.0.9-graal
|
|
sdk selfupdate
|
|
sdk update
|
|
;;
|
|
*)
|
|
echo ":: No supported distribution found."
|
|
echo " Install these packages manually:"
|
|
echo " bash ncurses nano rustup bat moar fireplace fortune-mod cowsay ytfzf yt-dlp tar zstd gzip bzip unrar unzip 7z ['ar' or 'binutils']"
|
|
;;
|
|
esac
|