Commit Graph

8 Commits

Author SHA1 Message Date
Jens Broekens
fb67e8ba4d
Return with previous exit code in Bash prompt function (#199)
asdf-java prepends to `$PROMPT_COMMAND`, thus swallowing up the
previous command's exit code (normally the command the user
invoked). This is troublesome if the exit code is used in the
user's own prompt command, for example to output a different
prompt.
2023-05-17 00:20:19 -04:00
Pierre/Long
93aed32043
add JDK_HOME, some program use/depend on this env (#164) 2021-09-29 10:14:08 -04:00
jinmiaoluo
6936bdfb3c
Fix the error 'already ends with semicolon' causing by the misuse of export (#119)
* Fix error causing by the misuse of export

fixes #91

* Use the solution from direnv project
2021-03-11 09:29:13 -05:00
Jochen Schalanda
8dc2e74d6d
Remove surplus dirname in set-java-home.bash (#127)
* Remove surplus `dirname` in set-java-home.bash
* Remove surplus `dirname` in set-java-home.zsh
* Remove surplus `dirname` in set-java-home.fish

Refs #114
Closes #126
2021-02-08 11:51:26 -05:00
Fernando Crespo
e5e43b7214
Replace realpath occurrences with a custom function (#114)
* Replace realpath ocurrences with a custom function

* Shellcheck fix

* Add absolute_dir_path to set-java-home files
2021-02-04 22:05:49 -05:00
johnny
585c87ae9a Updated set-java-home.bash to only update if the working directory has changed 2020-07-30 14:48:57 -04:00
Scott McLeod
b050643a2d Append new PROMPT_COMMAND when PROMPT_COMMAND is already set 2020-04-30 17:18:25 -04:00
Scott McLeod
e0a7114ef9 Update JAVA_HOME after changing java version 2020-04-13 15:42:30 -04:00