25 lines
1.2 KiB
Markdown
25 lines
1.2 KiB
Markdown
|
# Crystal `crystal`
|
||
|
|
||
|
!!! important "This section is rendered asynchronously by default"
|
||
|
|
||
|
!!! info
|
||
|
[**Crystal**](https://www.crystal-lang.org) is a general-purpose, object-oriented programming language.
|
||
|
|
||
|
The `crystal` section displays the Crystal version.
|
||
|
|
||
|
This section is displayed only when the current directory:
|
||
|
|
||
|
* Upsearch finds `shard.yaml` file
|
||
|
* Current directory contains any file with `.cr` extension
|
||
|
|
||
|
## Options
|
||
|
|
||
|
| Variable | Default | Meaning |
|
||
|
|:-------------------------- |:----------------------------------:| ----------------------------------- |
|
||
|
| `SPACESHIP_CRYSTAL_SHOW` | `true` | Show section |
|
||
|
| `SPACESHIP_CRYSTAL_ASYNC` | `true` | Render section asynchronously |
|
||
|
| `SPACESHIP_CRYSTAL_PREFIX` | `$SPACESHIP_PROMPT_DEFAULT_PREFIX` | Section's prefix |
|
||
|
| `SPACESHIP_CRYSTAL_SUFFIX` | `$SPACESHIP_PROMPT_DEFAULT_SUFFIX` | Section's suffix |
|
||
|
| `SPACESHIP_CRYSTAL_SYMBOL` | `🔮` | Symbol displayed before the section |
|
||
|
| `SPACESHIP_CRYSTAL_COLOR` | `069` | Section's color |
|