Brice Dutheil
6b9ff9cbea
Fixes #193 ZSH completion do not add the space anymore
...
The trick is done by configuring compctl to suffix the completion with nothing (`-S ""`).
http://zsh.sourceforge.net/Doc/Release/Completion-Using-compctl.html#Control-Flags
6 years ago
Gildas Cuisinier
d8ffd5bdf5
Merge pull request #245 from mcsnolte/include_add_command_in_help
...
Add the add command to help
7 years ago
Gildas Cuisinier
ca8accbe5a
Merge pull request #243 from juliodias/typo
...
Fix typo in documenation
7 years ago
Steve Nolte
78a5460b37
Add the add command to help
7 years ago
Julio Dias
9fb8d3fb6d
Fix typo
7 years ago
Gildas Cuisinier
af89d7800f
Merge pull request #236 from rstein66/master
...
Correct Java install command (brew -> brew cask)
7 years ago
Rachel Stein
c6dc6d75ef
Correct Java install command (brew -> brew cask)
...
Additional minor README changes:
- Add link to "Trouble Shooting" Wiki page (at the end of § 1.1).
- Fix spelling and Markdown typos.
7 years ago
Gildas Cuisinier
6ec3376880
jenv doctor detect missconfigured plugin ( #232 )
7 years ago
Gildas Cuisinier
4b45437171
Merge pull request #235 from bric3/patch-1
...
Fixes #234 : install the hook within a local function
7 years ago
Brice Dutheil
54cf885daa
Fixes #234 : install the hook within a local function
...
The previous code started a _new_ emulation, which had the side effect
of resetting some options like auto_cd
> If the -R switch is given, all settable options are reset to their default value corresponding to the specified emulation mode, except for certain options describing the interactive environment; **otherwise, only those options likely to cause portability problems in scripts and functions are altered.**
Source : http://zsh.sourceforge.net/Doc/Release/Shell-Builtin-Commands.html#Shell-Builtin-Commands
7 years ago
Gildas Cuisinier
33e367b1c2
Avoid call on java-macos-home by default
...
Should be the default behaviour for every user
If they want to create plist, they should call explicitly jenv
macos-home
7 years ago
Louis Bergelson
eb07943895
Fix #230 - jenv global regression
...
Replace a hardcoded call to `$HOME/.jenv/bin/jenv` with a call to the version of jenv that is in the `$PATH`.
7 years ago
Gildas Cuisinier
8d22928558
Prepare futur of jEnv organization
7 years ago
doctorpangloss
4fd4dca16a
Add GraalVM detection and make this JVM name check a bajillion times more sane
7 years ago
doctorpangloss
b448d59d9f
Ignore .time files
7 years ago
doctorpangloss
16f01d2e18
Update license to include copyrights from other contributors
7 years ago
doctorpangloss
d3fd842450
Do not imply version discovery
7 years ago
doctorpangloss
44a6394f4d
Set launchdaemon plist
7 years ago
doctorpangloss
2be276c3a6
Updating README and fixing jenv-add
7 years ago
doctorpangloss
58dcd3d7a8
.gitignore common Java and editor files
7 years ago
doctorpangloss
c73b47728d
Merge branch 'LIttleAncientForestKami-zulu'
7 years ago
doctorpangloss
cca5535ee0
Merge branch 'zulu' of git://github.com/LIttleAncientForestKami/jenv into LIttleAncientForestKami-zulu
...
- Fixes the whitespace in the jenv-add file to be much more readable
7 years ago
Benjamin Berman
f97c5252c9
Merge pull request #6 from mengbo/patch-1
...
Fix shell version when invoked from a script
7 years ago
Benjamin Berman
df8f6706c7
Merge pull request #5 from twlz0ne/add-fish-shell-support
...
Add fish shell support
7 years ago
Benjamin Berman
fb9315f301
Merge pull request #4 from vinny2020/fix/readme-bad-parameter
...
fixed incorrect 'j' typo for jenv shell command
7 years ago
Benjamin Berman
4145ccdcda
Merge pull request #3 from apapanico/patch-1
...
Fix redundant alias in new Java versions
7 years ago
Benjamin Berman
2e857ddd62
Merge pull request #2 from fbiville/issue_160
...
Support with space-containing path
7 years ago
Benjamin Berman
fc2f3b72d3
Merge pull request #1 from az82/master
...
Merge az82 fix: zsh completion fixed
7 years ago
Gong Qijian
cdb62a8b37
Add fish shell support
7 years ago
Florent Biville
0617e57fd7
Support with space-containing path
...
Fixes #160 .
7 years ago
Vincent Stoessel
7f7a3d852f
fixed incorrect 'j' typo for jenv shell command
7 years ago
apapanico
8530c19e6c
Fix redundant alias in new Java versions
...
It seems that newer versions of Java go away from the 1.X.X version format. Perhaps a new version parser is needed but this fixes a current issue where JAVA_SHORTVERSION and JAVA_VERSION are equal and jenv tries to add the version alias twice.
7 years ago
Meng Bo
676cc8a82f
Fix shell version when invoked from a script
...
When invoked from a shell script, `$(jenv init -)` did not get theshell name correct.
These code is get from rbenv.
8 years ago
Andreas Zitzelsberger
b336ebfbd4
zsh completion fixed
8 years ago
madumlao
ab64b81132
Fix shell detection code to use upstream detection
...
Shell detection using $SHELL variable breaks in the case of
for example X sessions which are started with bash when the user
has a different shell session set. The fix applies the rbenv
code for shell detection which is more exhaustive.
8 years ago
madumlao
ed0e5c8f16
Merge branch 'master' of github.com:madumlao/jenv
8 years ago
Kai Weber
6a71912fe6
Don't run jenv javahome twice
...
The second call to "jenv javahome" to set JDK_HOME is unnecessary. It
adds 60ms on my system.
8 years ago
Gildas Cuisinier
d8a8a70ab3
#128 Manage JDK_HOME In addition to JAVA_HOME
8 years ago
madumlao
e77ec3a183
Add gitignore
8 years ago
madumlao
dceefcd9ca
Set zsh emulation before running zsh-specific init.
...
Some users prefer to unify their bash and zsh profile variables by having .zprofile reference .profile as follows:
> emulate bash
> . $HOME/.profile
> emulate zsh
This causes export_jenv_hook to fail with "unknown condition: -z" as apparently the if clause uses zsh specific syntax.
This commit forces 'emulate zsh' before executing the zsh init, then returns the emulation settings after the zsh commands.
8 years ago
Gildas Cuisinier
a8e674d507
#181 Support --skip-existing in jenv-add
8 years ago
Dale Wijnand
7b08724979
Fix code block in README for export plugin
8 years ago
杨博 (Yang Bo)
4cc4346133
Fix #160
8 years ago
Kai Weber
fb068a2e99
Don't run jenv javahome twice
...
The second call to "jenv javahome" to set JDK_HOME is unnecessary. It
adds 60ms on my system.
8 years ago
Gildas Cuisinier
d991dc59fb
update version to 0.4.4
8 years ago
Gildas Cuisinier
d1bc6fd637
#128 Manage JDK_HOME In addition to JAVA_HOME
8 years ago
Thurston Sandberg
0787be1b5b
fixed --unset for global-options
8 years ago
Gildas Cuisinier
c0e821f5be
Document jenv export plugin
8 years ago
Tomasz "LAFK_pl" Borek
02ed7b3804
Zulu provider now recognized aside from OpenJDK.
...
Reasons for distinction are nicely illustrated by Azul's CTO, Gil Tene:
https://groups.google.com/forum/#!topic/mechanical-sympathy/jQGahuzJKM4
https://news.ycombinator.com/item?id=8496003
And on Support forum for Zulu:
https://support.azul.com/hc/en-us/community/posts/200966724-Zulu-vs-OpenJDK-
Since I know of no other OpenJDK binaries which are CERTIFIED to be
TCK-compliant, seems like a good reason to have it.
Another is the fact, that SDKMAN installs it when you chose to install
Java.
8 years ago
Tomasz "LAFK_pl" Borek
9ecbdf94d7
Indentation and phrasing around export plugin.
...
Inspired by https://github.com/gcuisinier/jenv/pull/154
It has conflicts now so it was faster this way.
Forgot to mention previous commit was inspired by
https://github.com/gcuisinier/jenv/pull/164
Thanks @johnjohndoe and @fmassart !
8 years ago