Skip to content

Commit

Permalink
asdf java対応
Browse files Browse the repository at this point in the history
  • Loading branch information
ik11235 committed Apr 15, 2024
1 parent 0e50091 commit 3694dc6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions DOT_LINK_TARGET/zsh.d/zshrc_mac
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ if [ -d ~/.asdf/shims ]; then
alias brew="env PATH=${PATH/$EXCLUSION_PATH:/} brew"
fi

## asdf-java
if [ -f "~/.asdf/plugins/java/set-java-home.zsh" ]; then
. ~/.asdf/plugins/java/set-java-home.zsh
fi

# asdfのupdate時にpathが変わるため、その対応にbrewのシンボリックリンクディレクトリを参照するように上書き
export ASDF_DIR="$(brew --prefix asdf)/libexec"
export asdf_cmd_dir="$(brew --prefix asdf)/libexec/bin"
Expand Down

0 comments on commit 3694dc6

Please sign in to comment.