From e813d5368142982feeaf9bfc50288f7ff490c520 Mon Sep 17 00:00:00 2001 From: horothesun Date: Mon, 2 Sep 2024 22:40:16 +0100 Subject: [PATCH] Jenv setup script improved --- jenv_install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jenv_install.sh b/jenv_install.sh index f7f3067..a5575cb 100755 --- a/jenv_install.sh +++ b/jenv_install.sh @@ -1,5 +1,10 @@ #!/bin/bash +function init_jenv() { + export PATH="${HOME}/.jenv/bin:${PATH}" + eval "$(jenv init -)" +} + function aux_jenv_reset() { cd "$1" && printf "%s\n" "${PWD##*/}" } @@ -36,4 +41,5 @@ brew install --cask \ "temurin@17" \ "temurin@21" +init_jenv jenv_reset