jabba icon indicating copy to clipboard operation
jabba copied to clipboard

jabba use doesn't work on windows.

Open gdoenlen opened this issue 3 years ago • 0 comments

The command returns posix shell: https://github.com/shyiko/jabba/blob/master/command/use.go#L39

This would never work on windows (and it doesn't).

I'm not a go dev, but shouldn't you be using something like os.Setenv ?

~> gc .jabbarc
[email protected]

~> $env:JAVA_HOME
C:\Users\george\scoop\apps\openjdk\current
~> jabba use
~> $env:JAVA_HOME
C:\Users\george\scoop\apps\openjdk\current

gdoenlen avatar Apr 06 '21 00:04 gdoenlen