mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-26 19:39:39 -08:00
fix(themes): yarn icon for NerdFonts 3.x update
Co-authored-by: Mateusz Bajorek <mab@viabill.com>
This commit is contained in:
parent
e87a9b9f07
commit
84f2c9a1eb
|
@ -55,7 +55,7 @@ func (n *Node) loadContext() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if n.language.env.HasFiles("yarn.lock") {
|
if n.language.env.HasFiles("yarn.lock") {
|
||||||
n.PackageManagerIcon = n.language.props.GetString(YarnIcon, "\uF61A")
|
n.PackageManagerIcon = n.language.props.GetString(YarnIcon, "\uF011B")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if n.language.env.HasFiles("package-lock.json") || n.language.env.HasFiles("package.json") {
|
if n.language.env.HasFiles("package-lock.json") || n.language.env.HasFiles("package.json") {
|
||||||
|
|
|
@ -1500,7 +1500,7 @@
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "Yarn Icon",
|
"title": "Yarn Icon",
|
||||||
"description": "Icon/text to use for Yarn",
|
"description": "Icon/text to use for Yarn",
|
||||||
"default": " \uF61A"
|
"default": " \uF011B"
|
||||||
},
|
},
|
||||||
"npm_icon": {
|
"npm_icon": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|
|
@ -33,7 +33,7 @@ import Config from "@site/src/components/Config.js";
|
||||||
| `display_mode` | `string` | <ul><li>`always`: The segment is always displayed</li><li>`files`: The segment is only displayed when one of the following files is present (**default**):<ul><li>`*.js`</li><li>`*.ts`</li><li>`package.json`</li><li>`.nvmrc`</li><li>`pnpm-workspace.yaml`</li><li>`.pnpmfile.cjs`</li><li>`.npmrc`</li><li>`.vue`</li></ul></li></ul> |
|
| `display_mode` | `string` | <ul><li>`always`: The segment is always displayed</li><li>`files`: The segment is only displayed when one of the following files is present (**default**):<ul><li>`*.js`</li><li>`*.ts`</li><li>`package.json`</li><li>`.nvmrc`</li><li>`pnpm-workspace.yaml`</li><li>`.pnpmfile.cjs`</li><li>`.npmrc`</li><li>`.vue`</li></ul></li></ul> |
|
||||||
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||||
| `fetch_package_manager` | `boolean` | define if the current project uses Yarn or NPM - defaults to `false` |
|
| `fetch_package_manager` | `boolean` | define if the current project uses Yarn or NPM - defaults to `false` |
|
||||||
| `yarn_icon` | `string` | the icon/text to display when using Yarn - defaults to ` \uF61A` |
|
| `yarn_icon` | `string` | the icon/text to display when using Yarn - defaults to ` \uF011B` |
|
||||||
| `npm_icon` | `string` | the icon/text to display when using NPM - defaults to ` \uE71E` |
|
| `npm_icon` | `string` | the icon/text to display when using NPM - defaults to ` \uE71E` |
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
Loading…
Reference in a new issue