26 lines
1.4 KiB
Markdown
26 lines
1.4 KiB
Markdown
|
# Java `java`
|
||
|
|
||
|
!!! important "This section is rendered asynchronously by default"
|
||
|
|
||
|
!!! info
|
||
|
[**Java**](https://www.java.com) is a class-based, object-oriented programming language
|
||
|
|
||
|
The `java` section is shown the current version of the Java compiler.
|
||
|
|
||
|
This section is shown only within Java projects, meaning:
|
||
|
|
||
|
* `java` compiler is available
|
||
|
* Upsearch finds `pom.xml`, `build.gradle`, `settings.gradle`, `build.xml` files
|
||
|
* The current directory contains `*.java`, `*.class`, `*.jar` or `*.war` files
|
||
|
|
||
|
## Options
|
||
|
|
||
|
| Variable | Default | Meaning |
|
||
|
| :------------------------------- | :--------------------------------: | ----------------------------------- |
|
||
|
| `SPACESHIP_JAVA_SHOW` | `true` | Show section |
|
||
|
| `SPACESHIP_JAVA_ASYNC` | `true` | Render section asynchronously |
|
||
|
| `SPACESHIP_JAVA_PREFIX` | `$SPACESHIP_PROMPT_DEFAULT_PREFIX` | Section's prefix |
|
||
|
| `SPACESHIP_JAVA_SUFFIX` | `$SPACESHIP_PROMPT_DEFAULT_SUFFIX` | Section's suffix |
|
||
|
| `SPACESHIP_JAVA_SYMBOL` | `☕·` | Symbol displayed before the section |
|
||
|
| `SPACESHIP_JAVA_COLOR` | `cyan` | Section's color |
|