diff --git a/lib/jenv.zsh b/lib/jenv.zsh new file mode 100644 index 00000000..96314663 --- /dev/null +++ b/lib/jenv.zsh @@ -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}" +} \ No newline at end of file