javaVersions is a
oh-my-zsh plugin that adds aliases to your zsh.
You can change between different java versions with a single command.
- Create a new directory in your
cp ./javaVersions.plugin.zsh ~/.oh-my-zsh/custom/plugins/javaVersions
- Enable the plugin by adding it to your
- Reset your terminal
By default java8 is active. If you want to change the java version execute the command
More information about oh-my-zsh and oh-my-zsh plugins
You can run the same aliases without oz-my-zsh. You've to add the aliases to your shell configuration file
(.bashrc, .zshrc, etc)