Skip to content

Commit

Permalink
Jenv setup script improved
Browse files Browse the repository at this point in the history
  • Loading branch information
horothesun committed Sep 2, 2024
1 parent 34034fe commit e813d53
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jenv_install.sh
Original file line number Diff line number Diff line change
@@ -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##*/}"
}
Expand Down Expand Up @@ -36,4 +41,5 @@ brew install --cask \
"temurin@17" \
"temurin@21"

init_jenv
jenv_reset

0 comments on commit e813d53

Please sign in to comment.