diff --git a/installation.sh b/installation.sh index 32daa03..611ae7b 100644 --- a/installation.sh +++ b/installation.sh @@ -68,7 +68,7 @@ fish -c "abbr vs 'code .'" fish -c "abbr untgz 'tar -xvzf'" fish -c "abbr - 'cd -'" 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 spotify 'LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify &> /dev/null & disown'" # Remove fish icon @@ -304,4 +304,17 @@ sudo systemctl enable tlp.service sudo systemctl mask systemd-rfkill.service 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."