mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
feat(perl): Added perl version module (#1382)
Adds a module for perl support.
This commit is contained in:
@@ -200,6 +200,7 @@ $julia\
|
||||
$nim\
|
||||
$nodejs\
|
||||
$ocaml\
|
||||
$perl\
|
||||
$php\
|
||||
$purescript\
|
||||
$python\
|
||||
@@ -1765,6 +1766,45 @@ The module will be shown if any of the following conditions are met:
|
||||
format = "via [🐪 $version]($style) "
|
||||
```
|
||||
|
||||
|
||||
## Perl
|
||||
|
||||
The `perl` module shows the currently installed version of Perl.
|
||||
The module will be shown if any of the following conditions are met:
|
||||
|
||||
- The current directory contains a `Makefile.PL` or `Build.PL` file
|
||||
- The current directory contains a `cpanfile` or `cpanfile.snapshot` file
|
||||
- The current directory contains a `META.json` file or `META.yml` file
|
||||
- The current directory contains a `.perl-version` file
|
||||
- The current directory contains a `.pl`, `.pm` or `.pod`
|
||||
|
||||
### Options
|
||||
|
||||
| Variable | Default | Description |
|
||||
| ---------- |----------------------------------- | ----------------------------------------------------- |
|
||||
| `format` | `"via [$symbol$version]($style) "` | The format string for the module.|
|
||||
| `symbol` | `"🐪 "` | The symbol used before displaying the version of Perl |
|
||||
| `style` | `"bold 149"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `perl` module. |
|
||||
|
||||
### Variables
|
||||
|
||||
| Variable | Example | Description |
|
||||
| -------- | --------- | ------------------------------------ |
|
||||
| version | `v5.26.1` | The version of `perl` |
|
||||
| symbol | | Mirrors the value of option `symbol` |
|
||||
| style\* | | Mirrors the value of option `style` |
|
||||
|
||||
### Example
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[perl]
|
||||
format = "via [🦪 $version]($style) "
|
||||
```
|
||||
|
||||
|
||||
## PHP
|
||||
|
||||
The `php` module shows the currently installed version of PHP.
|
||||
|
||||
Reference in New Issue
Block a user