my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
651 B

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