mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-12 14:04:05 -08:00
feat(php): extensions added + doc updated
This commit is contained in:
parent
68a0d5fd95
commit
9f80243b1e
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
id: php
|
id: php
|
||||||
title: php
|
title: php
|
||||||
sidebar_label: php
|
sidebar_label: PHP
|
||||||
---
|
---
|
||||||
|
|
||||||
## What
|
## What
|
||||||
|
@ -32,5 +32,5 @@ Display the currently active php version.
|
||||||
- missing_command_text: `string` - text to display when the command is missing - defaults to empty
|
- missing_command_text: `string` - text to display when the command is missing - defaults to empty
|
||||||
- display_mode: `string` - determines when the segment is displayed
|
- display_mode: `string` - determines when the segment is displayed
|
||||||
- `always`: the segment is always displayed
|
- `always`: the segment is always displayed
|
||||||
- `files`: the segment is only displayed when `*.php` files are present (default)
|
- `files`: the segment is only displayed when `*.php, composer.json, composer.lock, .php-version` files are present (default)
|
||||||
- enable_hyperlink: `bool` - display an hyperlink to the php release notes - defaults to `false`
|
- enable_hyperlink: `bool` - display an hyperlink to the php release notes - defaults to `false`
|
||||||
|
|
|
@ -48,6 +48,7 @@ module.exports = {
|
||||||
"os",
|
"os",
|
||||||
"owm",
|
"owm",
|
||||||
"path",
|
"path",
|
||||||
|
"php",
|
||||||
"python",
|
"python",
|
||||||
"root",
|
"root",
|
||||||
"ruby",
|
"ruby",
|
||||||
|
@ -59,7 +60,6 @@ module.exports = {
|
||||||
"text",
|
"text",
|
||||||
"time",
|
"time",
|
||||||
"ytm",
|
"ytm",
|
||||||
"php",
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,7 +12,7 @@ func (n *php) init(props *properties, env environmentInfo) {
|
||||||
n.language = &language{
|
n.language = &language{
|
||||||
env: env,
|
env: env,
|
||||||
props: props,
|
props: props,
|
||||||
extensions: []string{"*.php", "composer.json", ".php-version"},
|
extensions: []string{"*.php", "composer.json", "composer.lock", ".php-version"},
|
||||||
commands: []*cmd{
|
commands: []*cmd{
|
||||||
{
|
{
|
||||||
executable: "php",
|
executable: "php",
|
||||||
|
|
Loading…
Reference in a new issue