Add java installation

This commit is contained in:
Mylloon 2022-03-07 10:27:55 +01:00
parent 7cff6d02f0
commit 5955b1cdda
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -68,7 +68,7 @@ fish -c "abbr vs 'code .'"
fish -c "abbr untgz 'tar -xvzf'" fish -c "abbr untgz 'tar -xvzf'"
fish -c "abbr - 'cd -'" fish -c "abbr - 'cd -'"
fish -c "abbr cat 'bat'" fish -c "abbr cat 'bat'"
fish -c "abbr bigupdate 'sudo pacman -Syu --noconfirm && yay -Syu --noconfirm && tldr --update'" fish -c "abbr bigupdate 'sudo pacman -Syu --noconfirm && yay -Syu --noconfirm && tldr --update && echo \'y\' | sdk upgrade java'"
fish -c "abbr d 'nautilus . -w &> /dev/null & disown'" fish -c "abbr d 'nautilus . -w &> /dev/null & disown'"
fish -c "abbr spotify 'LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify &> /dev/null & disown'" fish -c "abbr spotify 'LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify &> /dev/null & disown'"
# Remove fish icon # Remove fish icon
@ -304,4 +304,17 @@ sudo systemctl enable tlp.service
sudo systemctl mask systemd-rfkill.service sudo systemctl mask systemd-rfkill.service
sudo systemctl mask systemd-rfkill.socket sudo systemctl mask systemd-rfkill.socket
# == Java ==
curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
if [ -x "$HOME"/.config/fish ] ; then
if [ ! -f "$HOME"/.config/fish/functions/fisher.fish ] ; then # install fisher if not already installed
curl -sL https://git.io/fisher | fish -c 'source && fisher install jorgebucaran/fisher'
fi
fish -c 'fisher install reitzig/sdkman-for-fish'
fi
sdk install java 17.0.2-tem
echo "y" | sdk upgrade java
echo -e "\nInstallation done.\nPlease restart your computer." echo -e "\nInstallation done.\nPlease restart your computer."