Browse Source

Add command for Fish shell README.md

In "1.3 Adding your Java Environment", I add command for Fish shell. In Fish shell, we should use `()` instead of `$()` for command substitution
pull/436/head
Aldo Wachyudi 2 years ago committed by GitHub
parent
commit
864a41d992
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      README.md

2
README.md

@ -119,6 +119,8 @@ sudo ln -sfn /usr/local/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtua @@ -119,6 +119,8 @@ sudo ln -sfn /usr/local/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtua
jenv add "$(/usr/libexec/java_home)" # this will always default to the latest version in /Library/Java/JavaVirtualMachines
# or
# jenv add /Library/Java/JavaVirtualMachines/openjdk.jdk
# or for fish shell (see: https://fishshell.com/docs/current/tutorial.html#command-substitutions)
# jenv add (/usr/libexec/java_home)
```
With macOS OpenJDK 21.0.2 installed, for example, either of these commands will add `/Library/Java/JavaVirtualMachines/openjdk.jdk/Contents/Home` as a valid JVM. Your JVM directory may vary!

Loading…
Cancel
Save