Giter Club home page Giter Club logo

jdkenv's Introduction

jdkenv

jdkenv is JAVA_HOME change command written in golang.

  • install
$ go install github.com/mickey305/jdkenv
  • get
$ go get github.com/mickey305/jdkenv

description

JAVA_HOMEを簡単に切り替えるためのコマンドです。 JAVA_HOMEにシンボリックリンクを指定して、シンボリックリンクの向き先を変更します。

useage

初期化

$ jdkenv init

実行後、環境変数JAVA_HOMEに~/.jdkenv/java/currentを指定し、JAVA_HOME/binにパスを通す

jdkのリスト表示

windowsの場合は~/.jdkenv/java/配下にある、プリフィクスがjdkのディレクトリを表示する macの場合は以下から探す

  • "/System/Library/Java/JavaVirtualMachines/"
  • "/Library/Java/JavaVirtualMachines/"
$ jdkenv list

JAVA_HOMEの変更

シンボリックリンク~/.jdkenv/java/currentの向き先を変更する

$ jdkenv use "listコマンドで表示されたjdk番号"

現在のjdkの確認

$ jdkenv current

pecoと組み合わせる

$ jdkenv use `jdkenv list | peco`

TODO

  • init時のメッセージが適当なのを修正する 
  • helpメッセージの実装
  • このREADMEの英語化

作者

https://github.com/stk132/jdkenv

jdkenv's People

Contributors

stk132 avatar mickey305 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.