install fisher if not installed for fish users

This commit is contained in:
Mylloon 2021-11-14 20:00:12 +01:00
parent 562db55e3e
commit ddbede6154

View file

@ -1,9 +1,14 @@
# Install SDKMAN
curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
# Adding Fish support if fish is installed (assumes that Fisher is already installed)
# Adding Fish support if fish is installed
if [ -x $HOME/.config/fish ] ; then
if [ ! -x $HOME/.config/fisher ] ; then # Install fisher if not installed
curl -sL https://git.io/fisher | fish -c 'source && fisher install jorgebucaran/fisher'
fi
fish -c 'fisher install reitzig/sdkman-for-fish'
fi
# Install Temurin build according with https://whichjdk.com/#adoptium-eclipse-temurin
sdk install java 17.0.1-tem