From ad3fa4fef6af05bbc51768785a0d06f110fdd9c5 Mon Sep 17 00:00:00 2001 From: Nikolaos Boutalas Date: Mon, 7 Aug 2023 11:51:30 +0300 Subject: Add sdkman task --- tasks/sdkman.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tasks/sdkman.yml (limited to 'tasks/sdkman.yml') diff --git a/tasks/sdkman.yml b/tasks/sdkman.yml new file mode 100644 index 0000000..638912f --- /dev/null +++ b/tasks/sdkman.yml @@ -0,0 +1,24 @@ +- name: Install sdkman + shell: curl -s "https://get.sdkman.io?rcupdate=false" | bash + args: + warn: false + tags: + - sdkman + +- name: Enable sdkman + lineinfile: + path: "~/.config/zsh/.zshrc" + line: | + #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" + tags: + - sdkman + +- name: Configure sdkman_auto_env + lineinfile: + path: "~/.sdkman/etc/config" + regexp: '^sdkman_auto_env=' + line: sdkman_auto_env=true + tags: + - sdkman -- cgit v1.2.3