Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

miguefl/javaVersions

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

javaVersions

javaVersions is a oh-my-zsh plugin that adds aliases to your zsh.

You can change between different java versions with a single command.

Installation

  1. Create a new directory in your oh-my-zsh/custom/plugin directory
mkdir ~/.oh-my-zsh/custom/plugins/javaVersions
  1. Copy javaVersions.plugin.zsh file
cp ./javaVersions.plugin.zsh ~/.oh-my-zsh/custom/plugins/javaVersions
  1. Enable the plugin by adding it to your plugins definition in ~/.zshrc.
plugins=(... javaVersions)
  1. Reset your terminal

Usage

By default java8 is active. If you want to change the java version execute the command java{versionNumber}

command java version
java8 java 8
java9 java 9
java10 java 10
java11 java 11
java12 java 12

More information about oh-my-zsh and oh-my-zsh plugins

https://github.com/robbyrussell/oh-my-zsh

https://github.com/robbyrussell/oh-my-zsh/wiki/Customization#overriding-and-adding-plugins

Notes

You can run the same aliases without oz-my-zsh. You've to add the aliases to your shell configuration file (.bashrc, .zshrc, etc)

About

Change between different java versions with this oh-my-zsh plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.