feat: add singularity module (#932)

This commit is contained in:
Tadej Novak
2020-02-26 17:18:19 +01:00
committed by GitHub
parent 15f4202df1
commit 7e66791cb2
9 changed files with 106 additions and 0 deletions
+27
View File
@@ -1091,6 +1091,33 @@ The module will be shown if any of the following conditions are met:
symbol = "⚙️ "
```
## Singularity
The `singularity` module shows the current singularity image, if inside a container
and `$SINGULARITY_NAME` is set.
:::
### Options
| Variable | Default | Description |
| ---------- | -------------------- | ------------------------------------------------ |
| `label` | `""` | Prefix before the image name display. |
| `prefix` | `"["` | Prefix to display immediately before image name. |
| `suffix` | `"]"` | Suffix to display immediately after image name. |
| `symbol` | `""` | The symbol used before the image name. |
| `style` | `"bold dimmed blue"` | The style for the module. |
| `disabled` | `false` | Disables the `singularity` module. |
### Example
```toml
# ~/.config/starship.toml
[singularity]
symbol = "📦 "
```
## Terraform
The `terraform` module shows the currently selected terraform workspace and version.