]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/plugins/jenv/README.md
...
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / plugins / jenv / README.md
1 # jenv plugin
2
3 [jenv](https://www.jenv.be/) is a Java version manager similar to [rbenv](https://github.com/rbenv/rbenv)
4 and [pyenv](https://github.com/yyuu/pyenv).
5
6 This plugin initializes jenv and provides the `jenv_prompt_info` function to add Java
7 version information to prompts.
8
9 To use, add `jenv` to your plugins array in your zshrc file:
10
11 ```zsh
12 plugins=(... jenv)
13 ```
14
15 ## Theme example
16
17 You can modify your `$PROMPT` or `$RPROMPT` variables to run `jenv_prompt_info`.
18
19 For example:
20 ```
21 PROMPT="%~$ "
22 RPROMPT='$(jenv_prompt_info)'
23 ```
24 changes your prompt to:
25 ```
26 ~/java/project$ ▋                                       oracle64-1.6.0.39
27 ```