function appendpath() {
  case ":$PATH:" in
  *:"$1":*)
  ;;
  *)
  PATH="${PATH:+$PATH:}$1"
  esac
}

appendpath "$GOPATH/bin"
appendpath "$HOME/.local/bin"
appendpath "$GRAALVM_HOME/bin"
appendpath $HOME/.local/share/gem/ruby/3.0.0/bin

unset appendpath

#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
