Setup JAVA_HOME with jenv and fish-shell in Mac
you need setup fish(omf) and HomeBrew before this
install open jdk (java8)
$ brew tap caskroom/versions
$ brew cask install java java8
install jenv
$ brew install jenv
$ mkdir ~/.jenv
$ mkdir ~/.jenv/versions
$ jenv add (/usr/libexec/java_home -v 1.8)
$ jenv global 1.8
set up for fish
code:.config/fish/conf.d/omf.fish
# set up java with jenv
# do not set JAVA_HOME here
set PATH $HOME/.jenv/bin $PATH
eval (jenv init - | source)
#fish