Skip to content

Commit

Permalink
update asdf conf for zsf on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
aolwas committed Nov 3, 2019
1 parent 82b0e87 commit b320ca1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions zsh/config/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ case `uname` in
. $(brew --prefix asdf)/asdf.sh
. $(brew --prefix asdf)/etc/bash_completion.d/asdf.bash
if [ -f "$HOME/.asdf/installs/rust/stable/env" ]; then . $HOME/.asdf/installs/rust/stable/env; fi
if [[ "$(\asdf current java 2>&1)" =~ "^([-_.a-zA-Z0-9]+)[[:space:]]*\(set by.*$" ]]; then
export JAVA_HOME=$(\asdf where java ${match[1]})
fi

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
Expand Down Expand Up @@ -41,9 +44,9 @@ case `uname` in
. $HOME/.asdf/completions/asdf.bash
fi
if [ -f "$HOME/.asdf/installs/rust/stable/env" ]; then source $HOME/.asdf/installs/rust/stable/env; fi
if [[ "$(\asdf current java 2>&1)" =~ "^([-_.a-zA-Z0-9]+)[[:space:]]*\(set by.*$" ]]; then
export JAVA_HOME=$(\asdf where java ${match[1]})
fi
if [[ "$(\asdf current java 2>&1)" =~ "^([-_.a-zA-Z0-9]+)[[:space:]]*\(set by.*$" ]]; then
export JAVA_HOME=$(\asdf where java ${match[1]})
fi

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
Expand Down

0 comments on commit b320ca1

Please sign in to comment.