mirror of https://github.com/kianby/dotfiles
move java aliases after sdkman
parent
883690104b
commit
cc45115a08
@ -1,9 +0,0 @@
|
||||
# java
|
||||
if hash sdk 2>/dev/null; then
|
||||
alias java6='sdk use java {{ .java6_version }}'
|
||||
alias java7='sdk use java {{ .java7_version }}'
|
||||
alias java8='sdk use java {{ .java8_version }}'
|
||||
alias java11='sdk use java {{ .java11_version}}'
|
||||
alias jv='java -version'
|
||||
fi
|
||||
|
@ -1,3 +1,12 @@
|
||||
#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"
|
||||
|
||||
# java
|
||||
if [ -n "$(LC_ALL=C type -t sdk)" ] && [ "$(LC_ALL=C type -t sdk)" = function ]; then
|
||||
alias java6='sdk use java {{ .java6_version }}'
|
||||
alias java7='sdk use java {{ .java7_version }}'
|
||||
alias java8='sdk use java {{ .java8_version }}'
|
||||
alias java11='sdk use java {{ .java11_version}}'
|
||||
alias jv='java -version'
|
||||
fi
|
||||
|
Loading…
Reference in New Issue