mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-10 04:54:03 -08:00
feat(php): extensions added + doc updated
This commit is contained in:
parent
68a0d5fd95
commit
9f80243b1e
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
id: php
|
||||
title: php
|
||||
sidebar_label: php
|
||||
sidebar_label: PHP
|
||||
---
|
||||
|
||||
## 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
|
||||
- display_mode: `string` - determines when the segment is 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`
|
||||
|
|
|
@ -48,6 +48,7 @@ module.exports = {
|
|||
"os",
|
||||
"owm",
|
||||
"path",
|
||||
"php",
|
||||
"python",
|
||||
"root",
|
||||
"ruby",
|
||||
|
@ -59,7 +60,6 @@ module.exports = {
|
|||
"text",
|
||||
"time",
|
||||
"ytm",
|
||||
"php",
|
||||
],
|
||||
},
|
||||
{
|
||||
|
|
|
@ -12,7 +12,7 @@ func (n *php) init(props *properties, env environmentInfo) {
|
|||
n.language = &language{
|
||||
env: env,
|
||||
props: props,
|
||||
extensions: []string{"*.php", "composer.json", ".php-version"},
|
||||
extensions: []string{"*.php", "composer.json", "composer.lock", ".php-version"},
|
||||
commands: []*cmd{
|
||||
{
|
||||
executable: "php",
|
||||
|
|
Loading…
Reference in a new issue