add support for jenv the java environment manager

This commit is contained in:
David Feinberg 2014-12-14 17:52:02 -08:00
parent 0a96bb1577
commit eb8266e21e

9
lib/jenv.zsh Normal file
View File

@ -0,0 +1,9 @@
# get the java version
function jenv_prompt_info() {
[ -f $HOME/.jenv/version ] || return
local jenv_prompt
jenv_prompt=$(jenv version-name 2>/dev/null)
[[ "${jenv_prompt}x" == "x" ]] && return
jenv_prompt=${jenv_prompt}
echo "${ZSH_THEME_NVM_PROMPT_PREFIX}${jenv_prompt}${ZSH_THEME_NVM_PROMPT_SUFFIX}"
}