feat: add Zig module (#1231)

This commit is contained in:
Dario Vladović
2020-05-21 18:49:49 +02:00
committed by GitHub
parent 9e8f35d746
commit c008f4041b
8 changed files with 122 additions and 0 deletions
+26
View File
@@ -122,6 +122,7 @@ prompt_order = [
"ruby",
"rust",
"terraform",
"zig",
"nix_shell",
"conda",
"memory_usage",
@@ -1363,6 +1364,31 @@ The module will be shown if any of the following conditions are met:
disabled = true
```
## Zig
The `zig` module shows the currently installed version of Zig.
The module will be shown if any of the following conditions are met:
- The current directory contains a `.zig` file
### Options
| Variable | Default | Description |
| ---------- | ------------ | ------------------------------------------------------ |
| `symbol` | `"↯ "` | The symbol used before displaying the version of Zig. |
| `style` | `"bold yellow"` | The style for the module. |
| `disabled` | `false` | Disables the `zig` module. |
### Example
```toml
# ~/.config/starship.toml
[zig]
symbol = "⚡️ "
```
## Custom commands
The `custom` modules show the output of some arbitrary commands.