From eb8266e21e5fad286462060f5e24dc995f36e209 Mon Sep 17 00:00:00 2001 From: David Feinberg Date: Sun, 14 Dec 2014 17:52:02 -0800 Subject: [PATCH] add support for jenv the java environment manager --- lib/jenv.zsh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 lib/jenv.zsh 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