add support for jenv the java environment manager
This commit is contained in:
parent
0a96bb1577
commit
eb8266e21e
9
lib/jenv.zsh
Normal file
9
lib/jenv.zsh
Normal 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}"
|
||||
}
|
Loading…
Reference in New Issue
Block a user