feat(vagrant): Add support for Vagrant (#1812)

Signed-off-by: Dentrax <furkan.turkal@hotmail.com>
Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com>

Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com>
This commit is contained in:
Furkan Türkal
2021-01-30 14:05:16 +03:00
committed by GitHub
parent 9b02a9742a
commit 9e21e3cf5f
8 changed files with 173 additions and 0 deletions
+36
View File
@@ -218,6 +218,7 @@ $ruby\
$rust\
$swift\
$terraform\
$vagrant\
$zig\
$nix_shell\
$conda\
@@ -2496,6 +2497,41 @@ disabled = false
show_always = true
```
## Vagrant
The `vagrant` module shows the currently installed version of Vagrant.
The module will be shown if any of the following conditions are met:
- The current directory contains a `Vagrantfile` file
### Options
| Option | Default | Description |
| ---------- | ---------------------------------- | --------------------------------------------------- |
| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
| `symbol` | `"⍱ "` | A format string representing the symbol of Vagrant. |
| `style` | `"cyan bold"` | The style for the module. |
| `disabled` | `false` | Disables the `Vagrant` module. |
### Variables
| Variable | Example | Description |
| -------- | ---------------- | ------------------------------------ |
| version | `Vagrant 2.2.10` | The version of `Vagrant` |
| symbol | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
\*: This variable can only be used as a part of a style string
### Example
```toml
# ~/.config/starship.toml
[vagrant]
format = "via [⍱ $version](bold white) "
```
## Zig
The `zig` module shows the currently installed version of Zig.